convertToUnixTime

Use the convertToUnixTime function to convert a DateTime value to Unix time.

Returns an integer representing the number of seconds that have elapsed since January 1, 1970 00:00:00 UTC (Unix Epoch).

convertToUnixTime(DateTime value)

  • DateTime value: The DateTime value to convert to Unix time.

convertToUnixTime example

In the following example when converting a date variable if the end date is August 1, 2018, the function returns the unix time

convertToUnixTime(EndDate)

The formula returns the Unix time value 1533081600.