Avatar of Aleks
Aleks
Flag for United States of America

asked on 

compare date to getdate()

I am trying to select reminders for 'today'
the date is saved in a datetime field, and is for example:

2017-04-18 00:00:00.000

I am trying the following but I get no results. I imagine its because it is taking the time into account. How can I compare the date only?

 
WHERE due_on= GETDATE()

Open in new window

Web DevelopmentSQL

Avatar of undefined
Last Comment
Nitin Sontakke

8/22/2022 - Mon