SimpleDateFormat not availiable in a script PX?
Hi All,
Trying to write a simple Script PX, As there is no entry criteria on a hold state we want to trigger an event and handle it by getting the value of a date attribute, if its empty or set in the past calculate a future date of now + 3 months, then write the attribute with this date value. Otherwise leave it unchanged.
Seems obj.getValueByAttId() is retuning a string type for the date attribute, so I want to convert it to a Date type so I can do the comparison to now and calculate the future date to set.