How to convert epoch value to date?

Hi, I am working on consuming REST API. The return object of REST API contain one timestamp in epoch format. I want to convert it into date format. The datatype of timestamp is String. I tried the solution given on this forum thread “” but getting  “/Date($RealKpiHead/Timestamp)/” on UI.   how to convert the timestamp in date format like this “Apr 17, 2019 21:01”?   TIA   Regards, Swati
1 answers

Epoch (Unix datetime) in milliseconds (counted from 1 june 1970) can be converted by using the COmmunity commons module, action; LongToDatetime.

After that you can format date according to your wish.

You made just a string ('everything between quotation marks’), which is normal to see then on your UI