Question
2
Replies
60
Views
Infosys Limited
Posted: July 2, 2020
Last activity: January 6, 2021
Convert Datetime to time ago format
Hi,
Is there a function to convert Datetime to time ago format.
Ex - 6/9/2020 4:58:46 AM should be formatted to '23 d ago'
We can do this in UI using dateTime field format "2 days, 5 hours ago", but we have to format and send it as response in service-rest.
Thanks
kaushik
Issue Resolved.