db.days
n days expressed in milliseconds.
db.days(n) → number
Returns n days as milliseconds. It composes with db.now, db.ago, and db.fromNow to express time windows. Add it to the other duration helpers, like db.days(7) + db.hours(12), for compound spans.
Parameters
n
number
RequiredA count of days.
A window of days
Invoices.filter((i) => i.dueDate < db.ago(db.days(30)));