Question
Infosys Limited
Infosys Limited
IN
Infosys Limited
Posted: Jul 2, 2020
Last activity: Jan 6, 2021
Last activity: 6 Jan 2021 3:19 EST
Closed
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