Is there a way to use the Now() function in SQL to select values with today’s date?
I was under the impression Now() would contain the time as well as date, but today’s date would have the time set to 00:00:00 and therefore this would never match?
There is no native Now() function in SQL Server so you should use:
you can get day, month and year separately by doing:
if you are on sql server 2008, there is the DATE date time which has only the date part, not the time: