apoc.date.fromISO8601
Syntax |
|
||
Description |
Converts the given date |
||
Arguments |
Name |
Type |
Description |
|
|
The datetime to convert to ms. |
|
Returns |
|
Parsing a datetime using Cypher
Cypher’s datetime()
function also accepts STRING
values formatted to the ISO8601 standard.
Usage Examples
The |
The following examples convert a date string in ISO 8601 format to epoch millis using both APOC and Cypher:
apoc.date.fromISO8601
RETURN apoc.date.fromISO8601('2020-11-04T12:21:33.000Z') AS outputInMs;
Using Cypher’s datetime() function
RETURN datetime('2020-11-04T12:21:33.000Z').epochMillis AS outputInMs;
outputInMs |
---|
1604492493000 |