2.5.12 CFDateOper

The CFDateOper enumeration specifies the valid types of date comparisons used in conditional formatting rules. All of these comparisons evaluate to False (0) if the cell does not contain a date.

The value of this enumeration MUST be a value from the following table.

Name

Value

Meaning

CF_TIMEPERIOD_TODAY

0x00000000

This rule evaluates to True (1) when the date specified by the cell is today's date.

CF_TIMEPERIOD_YESTERDAY

0x00000001

This rule evaluates to True (1) when the date specified by the cell is yesterday's date.

CF_TIMEPERIOD_LAST7DAYS

0x00000002

This rule evaluates to True (1) when the date specified by the cell is today's date or a day up to six days prior to today's date.

CF_TIMEPERIOD_THISWEEK

0x00000003

This rule evaluates to True (1) when the date specified by the cell is a day in the one-week period beginning with the previous Sunday.

CF_TIMEPERIOD_LASTWEEK

0x00000004

This rule evaluates to True (1) when the date specified by the cell is a day in the one-week period ending with the previous Saturday.

CF_TIMEPERIOD_LASTMONTH

0x00000005

This rule evaluates to True (1) when the date specified by the cell is a day in the previous month.

CF_TIMEPERIOD_TOMORROW

0x00000006

This rule evaluates to True (1) when the date specified by the cell is tomorrow's date.

CF_TIMEPERIOD_NEXTWEEK

0x00000007

This rule evaluates to True (1) when the date specified by the cell is a day in the one-week period beginning with the next Sunday.

CF_TIMEPERIOD_NEXTMONTH

0x00000008

This rule evaluates to True (1) when the date specified by the cell is a day in the next month.

CF_TIMEPERIOD_THISMONTH

0x00000009

This rule evaluates to True (1) when the date specified by the cell is a day in the current month.