landon humphrey
Member since Dec 11, 2008
- Profile: /members/488-landon-humphrey.htm
- Comments: 1
Recent Blog Comments By landon humphrey
-
Getting Only the Date Part of a Date/Time Stamp in SQL Server
Posted on Feb 22, 2007 at 3:21 PM
Here is my code. Works okay but the last = statement returns an error. How to I compare the newreportdate and the JustTheDate values. I have tried many maybe to many ways. Thanks Landon SELECT reportdate,worktype, maintby, CAST( FLOOR( CAST( getDate() AS FLOAT ) ) AS DATETIME )as timeret, CONVERT... read more »