Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
01-27-2020 02:14 AM
Hello there,
I am working with Neo4j dates, I want to get previous date from a date for example if "2019-01-01" is current date then i want "2018-12-31" as previous date.
Is there any way to get the previous date of a date in Neo4j using cypher?
Thanks in advance.
01-27-2020 03:20 AM
RETURN date('2019-01-01')- duration({days: 1}) as previousDate
╒══════════════╕
│"previousDate"│
╞══════════════╡
│"2018-12-31" │
└──────────────┘
01-27-2020 04:14 AM
Thanks Paul, it worked
All the sessions of the conference are now available online