In date/time variable,should be selected in PST time zone and should not allow past dates selection
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 08:15 PM
Hi @Ankur Bawiskar @Maik Skoddow @Mohith Devatte @SwarnadeepNandy @SANDEEP28
My requirement is,In date/time variable,date should be selected in PST time zone and should not allow users to select past dates.
i have already an existing client script which makes users not to select PST time zone.Here is the screenshot below
Please help me on my requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 07:15 PM
with the above script it was considering past dates. we are able to select past dates.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 08:00 PM
The script shared by Ankur works fine. Did you check variable name is correct in your client script?
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 08:27 PM
it should work fine.
Did you debug by adding alert?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 11:09 PM
In client script the variable name looks correct only, but i am facing two issues
1.start date/time variable is populating the time according to the users instances time
for example : i changed my instance time to IST and when i trying to select start date/time variable in the form, the time displays only in IST not in PST. for your reference
2. My requirement is start date/time variable is to display or select only in PST time zone irrespective of the users instances time zone. please help me on this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 12:05 AM
Hi @Ankur Bawiskar @Harish KM @Maik Skoddow @Mohith Devatte @SwarnadeepNandy @Hardik2109
Please help me on the below requirement
In client script the variable name looks correct only, but i am facing two issues
1.start date/time variable is populating the time according to the users instances time
for example : i changed my instance time to IST and when i trying to select start date/time variable in the form, the time displays only in IST not in PST. for your reference
2. My requirement is start date/time variable is to display or select only in PST time zone irrespective of the users instances time zone. please help me on this