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


Comments


You need to login to view comments.