I'm comparing dates, but the values stored in the DB contains the time part too.
I just need for example if I use the following code
SELECT GETDATE()
I get
2006-04-19 12:51:01.827
I just need the date
Is there any function o way to get just the date???
Deeply I need to do something like this
SELECT *
FROM MyTable
WHERE Date = @MyDate
@MyDate contains just a date, but when I receive the value it contains the date and time, so it is almost impossible to get coincidences
I just need for example if I use the following code
SELECT GETDATE()
I get
2006-04-19 12:51:01.827
I just need the date
Is there any function o way to get just the date???
Deeply I need to do something like this
SELECT *
FROM MyTable
WHERE Date = @MyDate
@MyDate contains just a date, but when I receive the value it contains the date and time, so it is almost impossible to get coincidences