selecting record based on date only excluding time code example Example: sql server current date without time SELECT CAST (GETDATE() AS DATE)