I am trying to check in a stored procedure a date in table if it is equal to Today's date.
Code is
DECLARE @p0 datetime
Set @p0 =GETDATE()
Select * from testtable
where dateCol=@p0
This doesn't work it just gives empty rows. How can I accomplish that? Thanks