Popular Posts

SQLblog.com - The SQL Server blog spot on the web

Wednesday, June 21, 2017

Expression needed for Midnight of previous day

SQLServerCentral » Latest topics
Expression needed for Midnight of previous day
How to get expression for yesterday and day before so that the time stamp resets *exactly to midnight*?

I have 
Yesterday gives 6/18/2017 10:04:10 AM  *need 6/18/2017 12:00:00 AM*
@[User::ToDate] = (DT_DATE) DATEADD("DAY",-

No comments: