/ Published in: SQL
Returns the last second of the day for a given datetime value (@date).
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
DATEADD(s, -1, DATEADD(d, 1, DATEADD(d, DATEDIFF(d, 0, @DATE), 0)))