addDays
Full name: taxi.stdlib.dates.addDays
Signature
declare function <T> addDays(T, Int):TDescription
Adds the specified number of days to a date, datetime, or instant. Use a negative value to subtract days.
// Calculate an expiry date 90 days from today
find {
@Format("yyyy-MM-dd")
expiresOn: Date = addDays(Date, 90)
}Examples
Adds days to a date — positive to advance, negative to go back.
Try it out
Schema
Query Plan
Play with this snippet by editing it here, or edit it on Taxi Playground
Result
Query failed