ATF : Set date and time as dynamic field value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 10:38 PM - edited 01-16-2025 11:37 PM
Hi ,
I want to set the planned start and end date along with time as the field value in ATF. How do I do that ?
For Example:
for Planned start date and time , I used = javascript: gs.nowDateTime().split(' ')[0].concat(' ', '00:00:00');
Planned end date, I used = javascript: gs.endOfThisYear().split(' ')[0].concat(' ', '00:00:00');
But it is not setting the values. How to achieve this?
Thanks,
Tiasha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2025 10:29 PM
Hi @tiasha123 ,
Use the script javascript:gs.daysAgo(X) in place of value, as shown in the below screenshot (sets Today's date).
Replace the X in brackets with any Number.
For Past Days: 1, 2, 3......
For Today: 0
For Future Days: -1, -2, -3......
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2025 11:57 PM
Hi @Chidanand_VK ,
Thanks for your response . I want to set the time as well with the date. How do we do that ?
Regards,
Tiasha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2025 11:36 PM
Hi @tiasha123 ,
By using above script, it sets the Date as per the number added in the script and Current time by default.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2025 02:48 AM - edited 01-20-2025 02:49 AM
Hi @tiasha123
Use the following:
It will set the date in future.
If you need to set date in past just remove the negative sign.
Regards
Shaqeel
***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.
***********************************************************************************************************************
Regards
Shaqeel