- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2014 07:33 AM
Hi Lindsey,
Sorry I didn't read that you wanted to use it as a default value.
To make this work, remove the last line gs.log(...
And replace it with:
dueDateGdt;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2014 09:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2014 09:46 AM
Sorry Lindsey, not having much luck here!
I've tested this and definitely got it this time...
You just need to add the below as a new line at the top of your script:
javascipt:
So it will look something like:
javascript:
// Get the datetime now
var nowGdt = new GlideDateTime();
...
Fingers crossed!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2014 09:59 AM
That worked! Thank you so much for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2014 10:58 AM
Hi Lindsey, feel free to mark correct and helpful responses on this thread