---
title: "init(dateComponentsRange:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/intemporaleventtrigger/init(datecomponentsrange:)"
---

# init(dateComponentsRange:)

Initializes the event trigger with the specified date information.

## Declaration

```swift
init(dateComponentsRange: INDateComponentsRange)
```

## Parameters

- `dateComponentsRange`: The time range during which the event is triggered. To trigger an event at a specific time, specify the same value for both the start and end dates of the range.

## Return Value

Return Value An initialized event trigger object or nil if the object could not be created.
