apoc.date.fromISO8601
This function is deprecated.
Use Cypher’s |
Syntax |
|
||
Description |
Converts the given date |
||
Arguments |
Name |
Type |
Description |
|
|
The datetime to convert to ms. |
|
Returns |
|
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 |