- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2025 02:24 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2025 02:41 AM
example script:
var dateStr = "/Date(1682726400000)/";
var intDate = dateStr.substring(dateStr.indexOf("(")+1, dateStr.indexOf(")"));
var gdtTesting = new GlideDateTime();
gdtTesting.setNumericValue(intDate);
gs.log(gdtTesting);
Thank you,
Ali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2025 02:29 AM
From where you are getting the data?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2025 02:36 AM
i get this one in a JSON formate
JSON /Date()/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2025 02:35 AM
Hello @hemanth40
you can get integer value and use setNumebrValue() function in GlideDateTime to get display value.
example script:
var gdtTesting = new GlideDateTime();
gdtTesting.setNumericValue(1682726400000);
gs.log(gdtTesting);
Thank you,
Ali
Thank you,
Ali

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2025 02:41 AM
example script:
var dateStr = "/Date(1682726400000)/";
var intDate = dateStr.substring(dateStr.indexOf("(")+1, dateStr.indexOf(")"));
var gdtTesting = new GlideDateTime();
gdtTesting.setNumericValue(intDate);
gs.log(gdtTesting);
Thank you,
Ali