/ Published in: SQL
Returns the last second of the day for a given datetime value (@date).
Expand |
Embed | Plain Text
DATEADD(s, -1, DATEADD(d, 1, DATEADD(d, DATEDIFF(d, 0, @date), 0)))
You need to login to post a comment.
hoffstein on 10/14/08
1 person have marked this snippet as a favorite
Returns the last second of the day for a given datetime value (@date).
DATEADD(s, -1, DATEADD(d, 1, DATEADD(d, DATEDIFF(d, 0, @date), 0)))
You need to login to post a comment.