TSQL truncate time

/ Published in: SQL
Save to your folder(s)

Returns the date associated with a given datetime value (@date).

Copy this code and paste it in your HTML
  1. DATEADD(d, DATEDIFF(d, 0, @DATE), 0)

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.