Question

1
Replies
24
Views
KaushikK1269 Member since 2015 7 posts
Infosys Limited
Posted: 1 month ago
Last activity: 1 month ago

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

 

 

Pega Customer Service 8.3 Data Integration Java and Activities Manufacturing and High Technology Senior System Architect
Share this page LinkedIn