Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
08-11-2021 01:07 AM
How to convert the date from YYYY-MM-dd HH:mm:ss format to this YYYY-MM-dd'T'HH:mm:ssz format from neo4j .
08-11-2021 02:15 AM
Therefore it should be something like:
apoc.date.convertFormat("2021-08-11 11:10:00", "YYYY-MM-dd HH:mm:ss", date_hour_minute_second_fraction)
or
apoc.date.convertFormat("2021-08-11 11:10:00", "YYYY-MM-dd HH:mm:ss", "YYYY-MM-dd'T'HH:mm:ssS")
08-11-2021 11:20 PM
Try this:
RETURN apoc.date.format(apoc.date.parse("2016-01-01 15:54:11", 's',"yyyy-MM-dd HH:mm:ss"), 's', "yyyy-MM-dd'T'HH:mm:ssz") as val
Result: "2016-01-01T15:54:11UTC"
08-23-2021 12:18 AM
Is it possible to change only the type without changing the format?
Currently save in "2016-01-01 15:54:11" format as a string {Datatype} , Expectation is 2016-01-01 15:54:11 as date {Datatype} .
All the sessions of the conference are now available online