ms sql select datetime as date code example Example: ms sql select datetime as date select cast(started_datetime as date) from table;