apoc.date.fromISO8601

Function APOC Core

apoc.date.fromISO8601('yyyy-MM-ddTHH:mm:ss.SSSZ') - return number representation of time in EPOCH format

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