I wish to find all records of the current day. I have a field Date of type DATE. I am getting error on sql server
\'DATE\' is not a recognized built-in funct
Use the following condition in your where cluase
WHERE CAST(DateColumn AS DATE) = CAST(GETDATE() AS DATE) ^------------ Your Column Name with `Date` or 'DateTime' data type
CURDATE() is a mysql function, In Sql-Server we have GETDATE() function to get current date and time.
CURDATE()
GETDATE()