Converting Date time value to days/hours/minutes ago format

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2022 01:48 AM
Hi,
Is there a way to convert the Date Time value to the Time ago format similar to the one we see on the Service Portal or the list view eg. 5 hours ago? I am guessing a Script include looking at the time difference with the current time might be able to solve it but if someone knows of a better way or already has a script, please let me know.
Regards,
Ayman
- Labels:
-
User Experience and Design
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2022 01:59 AM
Hi,
you might have to develop custom script for that
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2022 02:02 AM
Hi,
You might want to check this post
https://community.servicenow.com/community?id=community_question&sys_id=a93df8081b8ea8100b8a9979b04bcbb8
Regards,
Georgian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2022 02:57 PM