apoc.date.fromISO8601

Function

apoc.date.fromISO8601(time STRING) - converts the given date STRING (ISO8601) to an INTEGER representing the time value in milliseconds.

Signature

apoc.date.fromISO8601(time :: STRING) :: INTEGER

Input parameters

Name Type Default

time

STRING

null

Usage Examples

The time parameter is a date string in the ISO8601 standard format

The following converts a date string in ISO 8601 format to epoch millis:

RETURN apoc.date.fromISO8601('2020-11-04T12:21:33.000Z') AS outputInMs;
Table 1. Results
outputInMs

1604492493000