Using GlideDateTime in Action Script step
Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 11:01 PM
Hi,
Requirement is to do some operation based on date & time in Action Script. Issue is that I am getting no value against that outputs "todayDate" variable (Expecting the current datetime). PFA for Action Configurations.
I am trying to get the current date time from output.
Action Configuration:
Test result:
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 11:51 PM
@Community Alums
try to use this
outputs.todayDate = gdt.getValue();
If my response helped please mark it correct and close the thread so that it benefits future readers.
Regards,
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader