ms sql get just date from datetime code example Example: sql datetime as date SELECT CONVERT(DATE, GETDATE()) date;