Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 02:29 PM
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