---
title: date
framework: clockkit
role: symbol
role_heading: Instance Property
path: clockkit/clkrelativedatetextprovider/date
---

# date

The target date to use for calculations.

## Declaration

```swift
var date: Date { get set }
```

## Discussion

Discussion When creating a text provider that updates automatically,  the provider calculates the relative date between this property and the current date. The value of this property must not be nil. When creating a fixed, relative text provider, the provider calculates the relative date between this property and the relativeToDate property.

## See Also

### Getting the Date Information

- [relativeToDate](clockkit/clkrelativedatetextprovider/relativetodate.md)
- [relativeDateStyle](clockkit/clkrelativedatetextprovider/relativedatestyle.md)
- [calendarUnits](clockkit/clkrelativedatetextprovider/calendarunits.md)
