- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2020 09:30 PM
Hi,
I want to set start/end date dynamically in ATF? is this possible?
Regard,
Trupti
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2020 10:51 PM
Hi Trupti,
Can you explain what is the meaning of dynamic date?
This is possible
the below worked for me
javascript: gs.daysAgo(-7)
screenshot below is for older example; when I run it sets date to 7 days in future i.e. 11th May
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
‎11-01-2020 10:46 PM
Hello Trupti,
Refer below links, it may help you to solve your query.
https://community.servicenow.com/community?id=community_question&sys_id=4805b7a8db629700fff8a345ca9619d9
https://community.servicenow.com/community?id=community_question&sys_id=09c4e7dcdbac9010414eeeb5ca9619da
https://community.servicenow.com/community?id=community_question&sys_id=e22b2e08dbfcff44fece0b55ca96199a
https://community.servicenow.com/community?id=community_question&sys_id=56c52dd5db752b407d3e02d5ca961994
Kindly mark my answer correct & helpful; if it's useful to you & if it solves your query.
Thanks & Regards,
Pooja Devkar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2020 10:51 PM
Hi Trupti,
Can you explain what is the meaning of dynamic date?
This is possible
the below worked for me
javascript: gs.daysAgo(-7)
screenshot below is for older example; when I run it sets date to 7 days in future i.e. 11th May
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
‎11-02-2020 10:28 PM
Hi Ankur,
Dynamic means want to populate date automatically as If I run Test today or future it should accept current(date when we are executing) date as required.
Thanks for the solution. Its working for me too.
Regards,
Trupti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2020 10:41 PM
You are welcome
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader