Filtering by Date
Posted: Thu Dec 22, 2016 4:15 pm
Hi,
1. I'm trying to filter data in DataBand by setting the date in format "dd.MM.yyyy", which is used in Russia.
The filter doesn't work. When I set the date in format "MM.dd.yyyy", it works fine.
I've set both (1) the report's Culture = Russian (ru-Ru), and (2) AutoLocalizationOnRun = true, still the filter doesn't work for "dd.MM.yyyy" format.
2. Also, how can I use the date in filtering expression?
The code above doesn't work, due to the error: Operator '>=' cannot be applied to operands of type 'System.DateTime' and 'string'
Thank you.
1. I'm trying to filter data in DataBand by setting the date in format "dd.MM.yyyy", which is used in Russia.
The filter doesn't work. When I set the date in format "MM.dd.yyyy", it works fine.
I've set both (1) the report's Culture = Russian (ru-Ru), and (2) AutoLocalizationOnRun = true, still the filter doesn't work for "dd.MM.yyyy" format.
2. Also, how can I use the date in filtering expression?
Code: Select all
Activity.PlannedFinishDate >= "21.11.2016" && Activity.PlannedFinishDate <= "25.11.2016"
Thank you.