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