- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2022 05:31 AM
Hi,
How to mention the current data and time for the below one .
Below is not working
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2022 06:08 AM
Don't use gs.now()
It won't work in scoped app and also it just gives you the date and not date/time
update as this
target.last_discovered = new GlideDateTime();
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
‎03-02-2022 05:42 AM
Hi,
Can you try below function.
Suresh.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2022 06:10 AM
https://docs.servicenow.com/bundle/sandiego-platform-administration/page/script/server-scripting/concept/c_MappingOptions.html
The date can be formatted in code or on the transform map UI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2022 06:02 AM
Hi,
Is your issue fixed and if answered your question, can you mark it as correct answer and help to close the thread.
Regards,
Suresh.
Suresh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2022 06:08 AM
Don't use gs.now()
It won't work in scoped app and also it just gives you the date and not date/time
update as this
target.last_discovered = new GlideDateTime();
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader