Convert Timestamp to Date in AutomationEdge

Hi,
If you are facing the issue of getting an API result for Date as a Timestamp such as 1626358331000.

Here’s how to format it to a Date format of your choice, Use the steps of Java Modified and Rename Fields.
In the javascript use this code:
var d = new Date ( parseInt (timestamp));

Then in the Rename Fields format it to the desired format:

Thank you Victor Estigarribia for the tip!

2 Likes