apoc.date.toYears

Function

toYears(timestamp) or toYears(date[,format]) converts timestamp into floating point years

Signature

apoc.date.toYears(value :: ANY?, format = yyyy-MM-dd HH:mm:ss :: STRING?) :: (FLOAT?)

Input parameters

Name Type Default

value

ANY?

null

format

STRING?

yyyy-MM-dd HH:mm:ss