One method is to use the DatePart method.
But here is a much nicer way to get the Date Portion:
CAST(FLOOR( CAST( GETDATE() AS FLOAT ) )AS DATETIME)
Remember, if you want me to respond to your comment, then you need to use a Google/OpenID account to leave the comment.
No comments:
Post a Comment
Remember, if you want me to respond to your comment, then you need to use a Google/OpenID account to leave the comment.