- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2023 11:52 PM
Hello Community,
We have a integration with a third party tool, where we pass the variables data in the payload. Everything works fine, But, The DateTime variable value is always different than the value entered by user.
Can any one help us here?
TIA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2023 02:46 AM
Hi @vnarchana
The date time variable are stored in UTC time zone in ServiceNow. So if you use getValue on variables it will return UTC value only. You should convert this value to your required time zone using APIs like GlideDateTime.
Please mark my answer helpful and accept as a solution if it helped 👍✔️
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2023 02:46 AM
Hi @vnarchana
The date time variable are stored in UTC time zone in ServiceNow. So if you use getValue on variables it will return UTC value only. You should convert this value to your required time zone using APIs like GlideDateTime.
Please mark my answer helpful and accept as a solution if it helped 👍✔️
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2023 12:53 AM
Hi Anvesh,
Thanks for your response, now I understand.
Is it possible for you to provide the script for the same?