- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2022 10:24 PM
20220101T020000Z
can anyone please help me how to fetch using script.dateGR.addEncodedQuery('due_date_time>javascript:gs.beginningOfToday()');
but it is not workingSolved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2022 10:38 PM
Hi Shaik,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2022 10:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2022 10:32 PM
Hi,
you need to convert it to normal Date/time and then compare
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2022 11:23 PM
Hi
So basically i have a Due Date field which display as 2021-12-31 06:00:00 but when i saw show xml and see it displays as: 20211231T140000Z
So what i am trying to achieve is i am trying to pull a list of records which is greater than today, i tried using dateGR.addEncodedQuery('due_date_time>javascript:gs.beginningOfToday()'); it did not worked
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2022 11:46 PM
Hi,
if the field is date/time then it should not store in that format i.e. ISO
it should store in normal date/time format
Did you check who updated the due date with that format.
Is this happening for multiple records or only few?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader