advanced code snippet search
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)))
Report this snippet
You need to login to post a comment.