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

DateSubtract(date, timespan)

Example

CreatedAt >= DateSubtract(Now(), '1 week')

See Also

  • No labels