The convertEpochToObject task converts an Epoch timestamp into a date string with a specified time and date format.
Suppose you have a northbound system that is only capable of providing an Epoch timestamp. The convertEpochToObject task allows you to convert it into a human-readable timestamp for log files or other event records.
In this example:
The epoch variable is provided by the output of the reference task convertTimeToEpoch, which is located elsewhere in the workflow.
The convertTimeToEpoch task was used only to simulate an incoming Epoch timestamp for this example.
The reference variable provided by the convertTimeToEpoch task is epochTime.
The EpochFormat variable is set to Seconds.
The newFormatString variable is set to LLL, which is the moment.js locale format for Month name, day of month, year, time.
The convertedTime produced upon output will be the value of the epoch timestamp presented in a human-readable format.

In this example:
The epoch variable is provided by the output of the reference task convertTimeToEpoch, which is located elsewhere in the workflow.
The convertTimeToEpoch task was used only to simulate an incoming Epoch timestamp for this example.
The reference variable provided by the convertTimeToEpoch task is epochTime.
The EpochFormat variable is set to Seconds.
The newFormatString property is set to DD-MMM-YY hh:mm a, which is a date time format for Day-Month-Year hour:min am/pm.
The convertedTime produced upon output will be the value of the epoch timestamp presented in a human-readable format.

In this example:
epoch property is statically set to the number 1591045860.EpochFormat property is set to Seconds.newFormatString property is set to DD-MMM-YY hh:mm a, which is a date time format for Day-Month-Year hour:min am/pm.convertedTime produced upon output will be the value of the epoch timestamp presented in a human-readable format. In this case the converted timestamp will be 01-Jun-20 09:11 pm.