Question

Following the answer here, I'm getting the latest rows out of my table by indexing the 'date' field and querying like this:

table.orderBy({index: r.desc("date")})

How can I filter between dates if the 'date' values are implemented as strings (e.g "2013-12-31" or "2013-12-31 22:22:22")?

Was it helpful?

Solution

The command to do this is called between you can use it like so:

table.between(date1, data2).orderBy(...)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top