Support Article
Invalid Date Range filter error in IE
SA-27098
Summary
The user made a repeat grid for which the source is data page/RD which has a field of type DateTime.
In IE, when he is trying to apply filter on DateTime field, he is getting error "This results in an invalid Date range"
In Chrome, it is working as expected.
Error Messages
"01/11/2016. This results in an invalid Date range"
Steps to Reproduce
- Create a new column in the grid and associate it with this DateTime property and setthe control type to DateTime.
- On grid-enable filtering.
- In IE, at runtime, when you try to filter this column using the values FromDate "30/10/2016" and ToDate "01/11/2016", then the issue can be seen
Root Cause
Java Script only supports some specific date formats for creating a new date.
In IE, If we pass the date format as (dd/mm/yyyy)- Wrong date is calculated
In Chrome: It is returning as invalid date, internally, however, it is working.
Resolution
An enhancement request, FDBK-16432, has been created for consideration by Pega Product Management to make the control work uniquely across all browsers.
Local-change could be to set locale at the browser level.
Published August 24, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.