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.

Convert 8 July 2013 to 7/8/2013

ameyasoft
Graph Maven

I need to convert date 8 July 2013 to 7/8/2013 format. Any solution?

1 ACCEPTED SOLUTION

More specifically the APOC function call would be:

return apoc.date.parse('8 July 2013', 'ms', 'dd MMMM yyyy')

View solution in original post

3 REPLIES 3

use apoc.date.parse/format.

More specifically the APOC function call would be:

return apoc.date.parse('8 July 2013', 'ms', 'dd MMMM yyyy')

Thanks Stefan and Andrew for the suggestions. This worked for me:

return apoc.date.format(apoc.date.parse('8 July 2013', 'ms', 'dd MMMM yyyy'), 'ms', 'MM/dd/yyyy')

Result: 07/08/2013