Any 'Date' field value set through UI policy script gets corrupted if the users date format is different.
Any Supported release
Value passed through the script and the users date format are different.
In the UI policy script, if the value passed on to the 'Date' field is in the format "yyyy-mm-dd" and the users date format is "MM-dd-yyyy":
The value in the date field gets corrupted after saving the record.
Ex: It may be displayed as '0190-03-05' if it was entered as '2019-03-05'.
If the users date format varies across the system, make sure to get the users format and then pass the value on to the Date field.
or make sure all the users have the same date format and use the same in UI policy script.