Hi Experts,
anybody knows how to manage dates in Identity Portal forms? Looks like I cannot use the constructs of RhinoJS, like in BLTH, on the handlers javascript.
I need to compare two dates, activation and expiration date, to be sure that expiration is after.
If I do:
var actDate = api.getProp("activationDate").value;
console.log("actDate=" + actDate + " expDate=" + prop.value);
I get:
actDate=Wed Jul 18 2018 00:00:00 GMT+0300 (Eastern European Summer Time)
expDate=Fri Jul 20 2018 00:00:00 GMT+0300 (Eastern European Summer Time)
I could write a Java plugin or probably a JS plugin to compare them. Is there a way to do that inside the onchange handler?
Thanks.
Massimo.