SSRS Report having Data Range Parameters StartDate and EndDate pointing to DateTime column which is in format 2020-07-05 08:00:00.287
When I select Same Date say 10/05/2020 in StartDate and EndDate expecting record for that single daye but it's not returning/displaying any data. where as I check and see there's data available in the table.
Current Query: Select * from Table1 Where [DateTime]>=@StartDate AND [DateTime]<=EndDate
Also tried BETWEEN and (CONVERT(VARCHAR(20),DateTime,101), didn't work.
I want to use StartDate and EndDate as date range parameters and if I select same date(Single date) for both the Parameters it should return data from that Date. Appreciate any leads on resolving this issue.
CAST
function. So an example would be ...WHERE CAST(DateTime as DATE) BETWEEN @Start and @End
– jw11432