I\'m trying to create a report that gets records from a SQL Server database where the delivery date is today.
I\'ve tried
select * from (tablename) where
If delivery_date is always midnight (00:00:00.000), then compare it like this:
00:00:00.000
select * from (tablename) where delivery_date = datediff(d, 0, getdate())
Using datediff like this is a quick way to truncate the time part of a datetime value.
datediff