apoc.date

Qualified Name Type

apoc.date.add(time Long, unit String, addValue Integer, addUnit String) - adds a unit of specified time to the given timestamp.

Function

apoc.date.convert(time Long, unit String, toUnit String) - converts the given timestamp from one time unit into a timestamp of a different time unit.

Function

apoc.date.convertFormat(temporal String, currentFormat String, convertTo String) - converts a string of one type of date format into a string of another type of date format.

Function

apoc.date.currentTimestamp() - returns the current Unix epoch timestamp in milliseconds.

Function

apoc.date.field(time Long, unit String, timezone String) - returns the value of one field from the given date time.

Function

apoc.date.fields(date String, pattern String) - splits the given date into fields returning a map containing the values of each field.

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.

Function

apoc.date.fromISO8601(time String) - converts the given date string (ISO8601) to an integer representing the time value in milliseconds.

Function

apoc.date.parse(time String, unit String, format String, timezone String) - parses the given date string from a specified format into the specified time unit.

Function

apoc.date.systemTimezone() - returns the display name of the system time zone (e.g. Europe/London).

Function

apoc.date.toISO8601(time Long, unit String) - returns a string representation of a specified time value in the ISO8601 format.

Function

apoc.date.toYears(value Any, format String) - converts the given timestamp or the given date into a floating point representing years.

Function