1.5 · Lesson

Searching by Date Range

You now know how to create dates, truncate them, and compute durations. In this lesson you will combine these techniques to build date range searches —the kind of query that powers "find movies released within N years of X."

When a date Full definition for property (opens in a new tab)A named value stored on a node or a relationship. has a range index, Neo4j can use that index to speed up comparisons like >=, <=, and chained ranges. But this only works when you compare date values against date values.