How to convert epoch value to date?

0
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 “https://community.mendix.com/link/questions/90369” 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
asked
1 answers
4

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

answered