Phil Morris
Member since Nov 21, 2011
- Profile: /members/9272-phil-morris.htm
- URL: http://blackrosesolutions.co.uk
- Comments: 1
Recent Blog Comments By Phil Morris
-
Getting Only the Date Part of a Date/Time Stamp in SQL Server
Posted on Nov 21, 2011 at 4:28 AM
I like the floor() one personally, but the one that sticks in my brain for some odd reason (mainly cos it just works) is this one: select convert(datetime,convert(varchar(10),getdate(),120),120) today You can also change the varchar(10) to the length in the ISO date format 120 to the port... read more »