date format in sql select only date code example Example: sql datetime as date SELECT CONVERT(DATE, GETDATE()) date;