eXtreme Programming
XP for the programmer
23 April 2010
Get only the date part of a DATETIME
To get only the date part of a DATETIME on an efficient manner use the following code:
CAST
(FLOOR(
CAST
( GETDATE()
AS
FLOAT
))
AS
DATETIME)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment