apoc.date.fields

Function

apoc.date.fields('2012-12-23',('yyyy-MM-dd')) - return columns and a map representation of date parsed with the given format with entries for years,months,weekdays,days,hours,minutes,seconds,zoneid

Signature

apoc.date.fields(date :: STRING?, pattern = yyyy-MM-dd HH:mm:ss :: STRING?) :: (MAP?)

Input parameters

Name Type Default

date

STRING?

null

pattern

STRING?

yyyy-MM-dd HH:mm:ss