---
title: dateInterval
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkworkoutevent/dateinterval
---

# dateInterval

The time and duration of the event.

## Declaration

```swift
var dateInterval: DateInterval { get }
```

## Discussion

Discussion Most event types support only date intervals with a zero-length duration. These intervals indicate a single point in time, represented by the interval’s startDate property. Only HKWorkoutEventType.lap and HKWorkoutEventType.segment event types support intervals with nonzero durations.

## See Also

### Getting property data

- [type](healthkit/hkworkoutevent/type.md)
- [metadata](healthkit/hkworkoutevent/metadata.md)
