How do I truncate the time from a date
RonI_1550
Posts: 1 New member
in SQL Prompt
Most of our dates are stored as: 2015-01-01 00:00:00.000 and I want to truncate the time to just product yyyy-mm-dd
Tagged:
Answers
SELECT cast(getDate() As Date)
If this looks good for you, replace ''getDate()' with the name of column that holds the datetime data.
JR