Couchbase N1QL query data between two days without time
问题 I want to retrieve data from a Couchbase bucket with N1QL between two days (from 00:00:00.000 start date time until 23:59:59.999 end date time) Is it enough to provide the dates without time, like this: SELECT c.* FROM customer c WHERE c.start BETWEEN '2017-10-09' AND '2017-10-10' Or do I need to provide the time explicitly: SELECT c.* FROM customer c WHERE c.start BETWEEN '2017-10-09T00:00:00.000Z' AND '2017-10-10T23:59:59.999Z') ? 回答1: Couchbase date in ISO-8601 are string comparable. The