I have 2 dates (datetimes):
date1 = 2010-12-31 15: 13: 48.593
date2 = 2010-12-31 00: 00: 00.000
On the same day, only different times. Comparing date1 and date2 using <= does not work due to date1. Therefore, date1 <= date2 is incorrect, but must be true. Can I compare them just by looking at the year, month, and day so that they are the same? Its SQL Server 2008.
Thank:)
date sql-server tsql sql-server-2008
grady Jan 25 2018-11-11T00: 00Z
source share