toDate.ToString("yyyy-MM-dd 23:59:59.000");
DECLARE @Time TIME = '23:59:59.999' SELECT dateColumn + CAST(@Time as DATETIME) FROM tableName
enddt = enddt.AddDays(1);
DateTime dtFromDate = DateTime.Now.Date;// You will get date as DD-MM-YYYY 12:00:00 AM DateTime dtFrom =DateTime.Now.AddDays(1).Date.AddSeconds(-1);// You will get date as DD-MM-YYYY 23:59:59 PM
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)