How to return only the Date from a SQL Server DateTime datatype?

Forums SQLHow to return only the Date from a SQL Server DateTime datatype?
Staff asked 3 years ago

Answers (1)

Add Answer
Umang Ramani Marked As Accepted
Staff answered 3 years ago

Try this one : SELECT DATEADD(dd, 0, DATEDIFF(dd, 0, GETDATE()))

 

Subscribe

Select Categories