Identity Portal - Java script does not work in IE
search cancel

Identity Portal - Java script does not work in IE

book

Article ID: 100939

calendar_today

Updated On:

Products

CA Identity Manager CA Identity Governance CA Identity Portal

Issue/Introduction

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);