Simon Christens
Mega Sage

Hi @Ankur Bawiskar & @miftikhar20 

 

Could you please refactor the code to support all the different date formats that ServiceNow provides as each user could change their date / time formats and if its not the OOB yyyy-MM-dd format then both the scripts will break as new Date() expects a specific format