apoc.date.fromISO8601

Details

Syntax

apoc.date.fromISO8601(time)

Description

Converts the given date STRING (ISO8601) to an INTEGER representing the time value in milliseconds.

Arguments

Name

Type

Description

time

STRING

The datetime to convert to ms.

Returns

INTEGER

Usage Examples

The time parameter is a date string in the ISO8601 standard format

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;
Results
outputInMs

1604492493000