Skip to main content

EpochToDate

The EpochToDate function returns the equivalent date of the number of milliseconds passed in input. Epoch format is the number of milliseconds since January 01, 1970 0:0:0 UTC.

Prototype

    EpochToDate(Number)

Arguments

    Number      Number        By value

A valid number, an expression or a variable (Studio Only) of milliseconds since January 01,1970 0:0:0 UTC (Epoch format).

Returns

    Date

The Date in UTC format

Exception

    Undefined

Undefined is returned if Date is Undefined or is not a Date.

Example 

    EpochToDate(1638316800000)

This will return the following date: Wed Dec 01 2021 00:00:00 UTC.