<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INDateComponentsRange/init(start:end:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INDateComponentsRange(im)initWithStartDateComponents:endDateComponents:"
  },
  "title" : "init(start:end:)"
}
-->

# init(start:end:)

Initializes the object using the specified start and end dates.

```
convenience init(start startDateComponents: DateComponents?, end endDateComponents: DateComponents?)
```

## Parameters

`startDateComponents`

The starting date for the time range assigned to the [`startDateComponents`](/documentation/Intents/INDateComponentsRange/startDateComponents) property. Specify `nil` if you want the time range to start in the distant past.

`endDateComponents`

The ending date for the time range assigned to the [`endDateComponents`](/documentation/Intents/INDateComponentsRange/endDateComponents) property. Specify `nil` if you want the time range to end in the distant future.

## Return Value

An initialized [`INDateComponentsRange`](/documentation/Intents/INDateComponentsRange) object.

## Discussion

Use this method to initialize a date range with specific parameters. In a date components object, include only the values you want to specify, such as a range that measures only in days or a range that measures only in minutes.

---

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)