Usually, you have to Convert() the date to strip off the time. For example, convert(varchar(20),MyDate(),112) gives you yyyymmdd. So could do something like this:
Select * from MyTable Where
convert(varchar(8),MyDate1(),112) <
convert(varchar(8),MyDate2(),112)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.