- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-03-2023 12:40 PM
Hi
I know these works with the date fields for ATF
javascript: gs.daysAgo(-1); Tomorrow
javascript: gs.daysAgo(1); Yesterday
javascript: gs.daysAgo(-31); 31 days in future
javascript: gs.daysAgo(31); 31 days in past
javascript: gs.nowDateTime(); today
However. how do I specify the time?
For the change request form. I have planned start and end date fields that need to be on the same day but different times
Even if maybe the end date could be X hours after start date would help.
I was told that with ATF the javascript needs to be on one line of code.
Any tips would be appreciated.
Thank you in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-04-2023 12:13 PM
Add the following to the above format .split(' ')[0].concat(' ', 'HH:MM:SS');
For tomorrow at 1am time example: javascript: gs.daysAgo(-1).split(' ')[0].concat(' ', '01:00:00');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-04-2023 12:13 PM
Add the following to the above format .split(' ')[0].concat(' ', 'HH:MM:SS');
For tomorrow at 1am time example: javascript: gs.daysAgo(-1).split(' ')[0].concat(' ', '01:00:00');