How to fetch today's Date in Configure Function Field in a report
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2023 03:42 PM
I am trying to apply a datediff() function to create a date difference field. How can I fetch today's Date to subtract it from sys_created_on field in Configure Function Field option in a report.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2023 05:17 PM
Hi,
see:
And you show that your use of 'nowDateTime()' is not supported there. Seems you need another way to achieve your goal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2023 06:29 PM
Thanks, I have tried but no luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2023 10:31 PM
Hello @Mubashira
var gdt = new GlideDateTime();
glidefunction.dateDiff(gdt,sys_created_on);
Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 07:29 AM
Thank you Samaksh. Actually this works in script but I am declaring parameters in a 'Configure Function Field" in report.