date and time get only date using sql query code example Example: sql datetime as date SELECT CONVERT(DATE, GETDATE()) date;