Identity Portal - Java script does not work in IE

Document ID : KB000100939
Last Modified Date : 18/07/2018
Show Technical Document Details
Issue:
The JavaScript is working fine in Google Chrome, Firefox and Edge, but in Internet Explorer not.
Environment:
Identity Portal 14.x
Cause:
Verify if the JavaScript is manipulating Date, in this case, the problem was the date format.

 
Resolution:
Using the function:
Alert(dataMax);

The root cause was the following
Instead of ( Year - Month - Day ) format
var dataMax = new Date(yearMax + '-' + month + '-' + dataToday.getDate()); 

Change to ( Month - Day - Year ) 
var dataMax = new Date(month + '-' + dataToday.getDate() + '-' + yearMax);