can we set dynamic date(or current date) in date field in ATF ?

Trupti2
Kilo Expert

Hi,

I want to set start/end date dynamically in ATF? is this possible?

Regard,

Trupti

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

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

find_real_file.png

find_real_file.png

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

11 REPLIES 11

Pooja Devkar
Mega Guru

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

 

Ankur Bawiskar
Tera Patron
Tera Patron

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

find_real_file.png

find_real_file.png

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

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 

 

You are welcome

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader