Ankur Bawiskar
Tera Patron

@Taaha M 

you can do this with UI policy like this and less scripting required.

You need not worry on the date format for different users and it will be taken care automatically

AnkurBawiskar_0-1758200231603.png

AnkurBawiskar_1-1758200253415.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader