extract date from datetime SQL Server code example Example: sql datetime as date SELECT CONVERT(DATE, GETDATE()) date;