Hi,
The first problem you will be facing has to do with SSRS which does not accept blank dates. Therefore, you would have to accept to check NULL instead of leaving a blank date.
You could use two internal SSRS date parameters in addition to the 2 dates parameters available when running the report.
hStarDate internal parameter would be initialized by using the following expression:
=IIF(IsNothing(Parameters!StartDate.Value), DateSerial(1900,01,01), Parameters!StartDate.Value)
hEndDate internal parameter would be initialized by using the following expression:
=IIF(IsNothing(Parameters!EndDate.Value), DateSerial(4000,01,01), Parameters!EndDate.Value)
Your query will be using the internal parameters as shown in the following image:
Hope this helps,
Regards,