sql server datetime now code example Example 1: sql server current date without time SELECT CAST (GETDATE() AS DATE) Example 2: sql datetime now SELECT GETDATE();