cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

String to date conversion

Am facing an issue to parse a String to Date, String is "2021-03-12T09:14:38.353+00:00",
I need to fetch data between some dates, for that, I need to parse this string to Date. Any help will be appreciated.

1 REPLY 1

ameyasoft
Graph Maven
Try this:

RETURN apoc.date.format(apoc.date.parse("2021-03-12T09:14:38.353+00:00", 'ms', 'yyyy-MM-dd'), 'ms', 'yyyy-MM-dd')

Result: "2021-03-12"