Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

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), ...
  • Anonymous's avatar
    Anonymous
    8 years ago

    Phil_Seamark,

     

    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?