- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-25-2023 04:58 PM
When I executed "g_form.getValue(field name)", I got the local time set in the field.
I want to get it as UTC time, not local time.
What should I do?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-25-2023 07:54 PM
Hi @bonsai
If you're passing the date time value to the Server side, you can use this API below
setDisplayValue(String asDisplayed)
In the other hand, you can leverage the Date object in client side.
Sample
new Date('2023-12-28 10:40:29').toUTCString();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-25-2023 07:54 PM
Hi @bonsai
If you're passing the date time value to the Server side, you can use this API below
setDisplayValue(String asDisplayed)
In the other hand, you can leverage the Date object in client side.
Sample
new Date('2023-12-28 10:40:29').toUTCString();