How do I script a GlideDate and GlideDateTime
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2022 01:28 PM
I am parsing a JSON. When a change request is submitted I want to auto populate the planned start date and planned end date. The start date show be the current users local time and the end date should be 5 minutes from the start date. How do I script the start date and end date ? I know the glidedate & glidedatetime format but it is not showing up when I open the newly submitted change request.
- Labels:
-
Integrations

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2022 02:46 PM
Configure dictionary of Planned start date and set default value as
javascript: new GlideDateTime();
And for planned end date as:
javascript: var y = new GlideDateTime(x); y.addSeconds(300); y;
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2022 07:12 PM
heres what I have so far: