This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help

Next Topic

Book Contents

Book Index

Date Operators

Date Operators are used to perform some calculation on either two dates or one date and a number (quantity).

Table of date operators for use with date expressions

Operator

 

Description

+

Plus

The first argument is a date and the second is a quantity representing a number of days. The result is a date representing the number of days added onto the date. For example TODAY + 1 gives the date tomorrow.

-

Minus

Where the first argument is a date and the second is a quantity representing a number of days the result is a date representing the number of days subtracted from the date. For example TODAY - 1 gives the date yesterday.

Where both arguments are dates the result is a quantity representing the number of dates between two dates. For example DEPARTURE_DATE - ARRIVAL_DATE is an expression which gives the duration of stay in days.

See Also

Date Functions