apoc.date.toISO8601
Syntax |
|
||
Description |
Returns a |
||
Arguments |
Name |
Type |
Description |
|
|
The timestamp since epoch to format. |
|
|
|
The unit of the given timestamp. The default is: |
|
Returns |
|
Cypher’s toString() function automatically converts temporal values into STRING values formatted to the ISO8601 standard.
|
Usage Examples
The
|
The following examples convert the current datetime to a date string in ISO8601 standard format using both APOC and Cypher:
apoc.date.toISO8601
RETURN apoc.date.toISO8601(datetime().epochMillis, "ms") AS iso8601;
Using Cypher’s toString()
RETURN toString(datetime()) AS iso8601;
iso8601 |
---|
"2020-11-05T14:21:58.179Z" |