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-18-2015 01:28 PM
i used the below script , its working good
var timeInStart = current.u_on_call_start;
var dateTimeStart = timeInStart.split('T');
var dateStart = dateTimeStart[0];
var timeStart = dateTimeStart[1].split('Z');
t = dateStart + " " + timeStart[0];
var start = new GlideDateTime(t);
var plannedStartDt = new GlideDateTime(start);
z = plannedStartDt; * converted Local Date Time *
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2023 06:54 AM
This is the way. Thank you!