How would I be able to filter all people in a graph who were born before 10/06/1947 ?
Right now I'm storing birthdays as a String property called birth_date with format MM/DD/YYYY
START n=node(2) MATCH (n)<-[:IS_A]-(x) WHERE x.birth_date > "10/06/1947" RETURN x.name,x.birth_date ORDER BY x.birth_date DESC
Well,
I have been storing dates as longs on the nodes and then converted them from and to formatted strings outside the Cypher query. Would that work in your case?
/peter
Sent from my phone, please excuse typos and autocorrection.
Quoteth:
"When storing time, store Unix time. It's a single number. "
-TPP
can you please raise an issue about this.
Thanks a lot
Michael