How to convert iso date string (2015-11-18T20:00:00Z) to local time

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2015 11:27 AM
How to convert iso date string (2015-11-18T20:00:00Z) to local time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2015 11:43 AM
You can use getLocalTime() method of GlideDateTime to get the time in user's local timezone.
GlideDateTime - ServiceNow Wiki
var gdt = new GlideDateTime("2011-08-31 08:00:00");
gs.print(gdt.getLocalTime());
Regards,
Hardik Vora

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2015 02:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2015 09:04 AM
What is the data type of those columns in table?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2015 09:12 AM
Data type is date/time
i got REST API output JSON format , i am using schedule job for push data in to table ,