I'm trying to select all records inserted in a certain day, so comparing date only and ignore the time.
I searched for a function but didn't found.
I found this:
Is to get the day, month and year then compare everyone of them.
My code getting more bigger!
Is there another easier way?
>>Edit<<
[Date] is a table in my database.
>>/Edit<<
Thanks,
Bassem
I searched for a function but didn't found.
I found this:
Code:
WHERE day([Date]) = day(GetDate()) AND month([Date]) = month(GetDate()) AND year([Date]) = year(GetDate())
My code getting more bigger!
Is there another easier way?
>>Edit<<
[Date] is a table in my database.
>>/Edit<<
Thanks,
Bassem
Comment