how to get yesterday's date without the time? | The ASP.NET Forums
You can do this if you want a datetime: SELECT DATEADD(d,DATEDIFF(d,GETDATE(),0),0) ' That should get you today's date SELECT DATEADD(d,DATEDIFF(d,GETDATE(),0),0)-1 ' That should get you yesterday's date SELECT DATEADD(d,DATEDIFF(d ......