## TimePeriodType enum


Used in a [FormatConditionType.TimePeriod](../formatconditiontype/) conditional formatting rule. These are dynamic time periods, which change based on the date the conditional formatting is refreshed / applied.

```cpp
enum class TimePeriodType
```

### Values

| Name | Value | Description |
| --- | --- | --- |
| Today | 0 | <br>Today's date. |
| Yesterday | 1 | <br>Yesterday's date. |
| Tomorrow | 2 | <br>Tomorrow's date. |
| Last7Days | 3 | <br>A date in the last seven days. |
| ThisMonth | 4 | <br>A date occurring in this calendar month. |
| LastMonth | 5 | <br>A date occurring in the last calendar month. |
| NextMonth | 6 | <br>A date occurring in the next calendar month. |
| ThisWeek | 7 | <br>A date occurring this week. |
| LastWeek | 8 | <br>A date occurring last week. |
| NextWeek | 9 | <br>A date occurring next week. |
| ThisYear | 10 | <br>A date occurring this year. Only for .ods. |
| LastYear | 11 | <br>A date occurring last year. Only for .ods. |
| NextYear | 12 | <br>A date occurring next year. Only for .ods. |

## See Also

* Namespace [Aspose::Cells](../)
* Library [Aspose.Cells for C++](../../)
