How to add days to glideDate object ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2024 04:03 AM - edited ‎10-23-2024 04:03 AM
How to add days to the glide date object and no need to consider time ?
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2024 04:22 AM
hI @Manikantahere ,
Please try this way
var gd = new GlideDate();
gd.addDays(5); // Adds 5 days to the current date
gs.info('Updated Date: ' + gd.getDisplayValue()); // Outputs: Updated Date: 2024-10-28
Please mark helpful & correct answer if it's really worthy for you.
Thanks,
BK
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2024 04:41 AM
Hi @Manikantahere try below script
var glideDate=new GlideDate();
glideDate.addDays(3);
gs.print(glideDate);
if my answer helps you please mark helpful and accept solution