Forum Discussion
Anonymous
8 years agoNot applicable
Change datetime format to date in SQL
Hi, I was trying to change the datetime format to date in the SQL statement in order to lessen the M query due to connecting to a huge database. Here is my code: convert(date, createTime, 101), ...
- Anonymous8 years ago
The createtime column is in datetime format.
Only the cast(createtime as date) works for me. The result is in the format of datetime too.
Is that possible to direct convert it to date format without using query M?
Anonymous
8 years agoNot applicable
The createtime column is in datetime format.
Only the cast(createtime as date) works for me. The result is in the format of datetime too.
Is that possible to direct convert it to date format without using query M?
Phil_Seamark
8 years agoMicrosoft Employee
Date format is DateTime only set to midnight.