James Chun
Kilo Patron

Hi @t venkatesh1,

 

Are you trying to set a fixed display value for the date variable across all time zones?

 

If so, you don't need to write a script to validate the user's timezone.

Instead, try something like this:

javascript: var gdt = new GlideDate(); gdt.setDisplayValue("2021-05-21");gdt.getValue();

 

Of course, you will need to change the parameter in the setDisplayValue() to fit your needs.

 

Cheers