apoc.date.toISO8601
Function
apoc.date.toISO8601(time INTEGER, unit STRING)
- returns a STRING
representation of a specified time value in the ISO8601 format.
Usage Examples
The
|
The following converts the current datetime in milliseconds to a date string in ISO8601 standard format:
RETURN apoc.date.toISO8601(datetime().epochMillis, "ms") AS iso8601;
iso8601 |
---|
"2020-11-05T14:21:58.179Z" |