Contents

DateInterval

The span of time between a specific start date and end date.

Declaration

struct DateInterval

Overview

DateInterval represents a closed date interval in the form of [startDate, endDate]. It is possible for the start and end dates to be the same with a duration of 0. DateInterval does not support reverse intervals i.e. intervals where the duration is less than 0 and the end date occurs earlier in time than the start date.

Topics

Creating a Date Interval

Accessing Start Date, End Date, and Duration

Determining Intersections

Determining Whether a Date Occurs Within a Date Interval

Using Reference Types

Instance Methods

See Also

Date Representations