I want to get a DATE corresponding to the first Monday in 2020.
I expected the following Cypher to answer that:
WITH DATE({year: 2020, week: 1, weekday: 1}) as date
RETURN date
The answer that Neo4J returns is "2019-12-30"
(I'm using Neo4J Enterprise v4.4.4).
That's at least unexpected, if not just plain wrong. Sorting out this sort of complexity is precisely why I want use a pre-existing function rather than rolling my own.
I expected the answer to be 2020-01-06
.
What am I misunderstanding about Neo4J date handling?
What Cypher should I use to get the first Monday in 2020 (or any other year)?