Function: DateSubtract
DateSubtract allows you to subtract a timespan from a date/time value, it's most useful when you want to express a query in terms of a date/time relative to current date and time.
Syntax
Code Block | ||
---|---|---|
| ||
DateSubtract(date, timespan) |
Example
Code Block | ||
---|---|---|
| ||
CreatedAt >= DateSubtract(Now(), '1 week') |