apoc.date.fromISO8601
Function
apoc.date.format(time Long, unit String, format String, timezone String)
- returns a string representation of the time value.
The time unit (default: ms), date format (default: ISO), and time zone (default: current time zone) can all be changed.
Usage Examples
The |
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;
outputInMs |
---|
1604492493000 |
Was this page helpful?