imamc
imamc

Reputation: 175

Cypher java date query

I'm attempting to run a cypher query to return back nodes within a particular date range. When passing in the date object (Java) the query fails to return the correct nodes. I'm currently using the long date value (i.e. getTime()) which works as expected. This is great, but is there a way of just using the actual Date object?

Upvotes: 2

Views: 1167

Answers (2)

tstorms
tstorms

Reputation: 5001

It has been integrated in Neo4j 2.0, see timestamp.

Upvotes: 1

Michael Hunger
Michael Hunger

Reputation: 41706

Unfortunately neo4j has no support for storing actual date objects as properties. So, right now you have to pass in date.getTime() as cypher parameters.

We'll look into that.

Upvotes: 2

Related Questions