<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKWorkoutEvent/dateInterval",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HKWorkoutEvent(py)dateInterval"
  },
  "title" : "dateInterval"
}
-->

# dateInterval

The time and duration of the event.

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

## 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 <doc://com.apple.documentation/documentation/Foundation/NSDateInterval/startDate> property. Only [`HKWorkoutEventType.lap`](/documentation/HealthKit/HKWorkoutEventType/lap) and [`HKWorkoutEventType.segment`](/documentation/HealthKit/HKWorkoutEventType/segment) event types support intervals with nonzero durations.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)