Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2017 10:42 PM
Hello Experts!
How do I extract or use the date from GlideDateTime()?
Thank you!
Carlo
Solved! Go to Solution.
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2017 10:50 PM
Please try,
var sdt = new GlideDateTime();
var dt = sdt.getDisplayValue().split(' ')[0];
gs.print(dt);
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2025 09:09 AM
This is what I have done:
var today = new GlideDate();
// formats to yyyy-mm-dd
var displayDate = today.getDisplayValue();
return displayDate;