
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2019 03:08 PM
I have a date variable in a record producer. How would I set the default date to 10days in the future?
Solved! Go to Solution.
Labels:
- Labels:
-
Scripting and Coding
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2019 05:09 PM
Hi Ray,
You would need to set the default date in the Record Producer Variable.
Key in this value in the default value field of the variable.
javascript:var dt = new GlideDateTime();dt.addDays(10);dt.getDisplayValue();
Refer to screenshot below:
You should see the field populated as below:
Please mark helpful, if it did indeed
Thanks,
Tej
5 REPLIES 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2019 07:13 PM
Thank Tej. Thats just what I was looking for.