- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 02:36 PM
Hi Community,
When running a background script gs.info pointing to a Date field that has info, for some reason the resoult is Undefined,
Do anyone know how to take the Date info from a field in background script?
example with error: gs.info("Date is: " + gr.end_date);
Thanks!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 02:44 PM
Can you share the complete script.
If you simply want to check date try below
var dateis=new GlideDateTime();
gs.info(dateis);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 02:44 PM
Can you share the complete script.
If you simply want to check date try below
var dateis=new GlideDateTime();
gs.info(dateis);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 02:45 PM
Try below
gs.info("Date is: " + gr.end_date.getValue());
Regards,
Sachin