When you call date-related functions, you can use enumeration members in your code in place of the actual values.
The DateInterval enumeration defines constants used with date-related functions to identify how date intervals are determined and formatted. The following table lists the DateInterval enumeration members.
| Member | Description |
|---|---|
| DateInterval.Day | Day of month (1 through 31) |
| DateInterval.DayOfYear | Day of year (1 through 366) |
| DateInterval.Hour | Hour (1 through 24) |
| DateInterval.Minute | Minute (1 through 60) |
| DateInterval.Month | Month (1 through 12) |
| DateInterval.Quarter | Quarter of year (1 through 4) |
| DateInterval.Second | Second (1 through 60) |
| DateInterval.Weekday | Day of week (1 through 7) |
| DateInterval.WeekOfYear | Week of year (1 through 53) |
| DateInterval.Year | Year |