I'm doing a REST API request like this:
/rest/api/content/ID_ID_ID?expand=version history
and now I want to show the date available in version.when but in the 'friendly' string like '15 minutos ago'.
Is there any way to achieve this without an external plugin/logic? I mean, the REST api has any conversion tool from "2020-06-28T19:09:59.726Z" to "2 minutos ago" ?
Hi @PS ,
Unfortunately, rest api does not provide any way to do that conversion. You can parse the json and convert the dates by coding.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.