
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
Hello,
I am attempting to use GlideDate to calculate the difference between today and a saved date, but I keep getting the time included with the GlideDate object (even though everything says that doesn't happen.
I ran this script as a test:
var today = new GlideDate();
today.getByFormat('yyyy-mm-dd');
gs.print('Get by format numeric value: ' + today.getNumericValue());
var todayManual = new GlideDate();
todayManual.setDisplayValue('2025-10-07');
gs.print('Set by display value numeric value: ' + todayManual.getNumericValue());
The result is 2 different numbers.
*** Script: Get by format numeric value: 1759851173663
*** Script: Set by display value numeric value: 1759795200000
I need to get the second value for today.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
Try below
If this helped to answer your query, please mark it helpful & accept the solution.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
Try below
If this helped to answer your query, please mark it helpful & accept the solution.
Thanks,
Bhuvan