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.

Date format syntax in CYPHER

Hi All,

I have an epoch date with microsencods (1549641709667000).I want to convert that into date without timezone .As of now i am doing this .

return datetime({epochMillis:1549641709667000/1000})

  • "2019-02-08T10:01:49.667000000[America/Chicago]"

Is there another way to get this without dividing by 1000 ? Also i am not interested in the timezone .I just need "2019-02-08T10:01:49.667000000"

thanks for the help in advance.

Sojan

2 REPLIES 2

ameyasoft
Graph Maven
Try this:

return  apoc.date.format(1549641709667000/1000, 'ms', 'yyyy-MM-dd HH:MM:SS:mmmmm')

Result: "2019-02-08 16:02:667:00001"

Thank you for your time