---
title: "date(_:)"
framework: relevancekit
role: symbol
role_heading: Type Method
path: "relevancekit/relevantcontext/date(_:)"
---

# date(_:)

Tells the system a widget is relevant at a specific date.

## Declaration

```swift
static func date(_ exact: Date) -> RelevantContext
```

## Parameters

- `exact`: The time the widget is most relevant to a person.

## Return Value

Return Value A contextual clue that the system uses to determine the relevance of a widget in the Smart Stack on Apple Watch.

## Discussion

Discussion Let the system know that a widget is most relevant to a person on a specific date. For example, an app people use to follow sport events might provide the start of a match or a live broadcast. If you know when the widget isn’t relevant anymore, use date(interval:kind:). note: Smart Stacks are available in iOS, iPadOS, and watchOS. However, functionality provided by RelevanceKit API is only available in watchOS. Calling its API on other platforms doesn’t have any effect. For more information, refer to Increasing the visibility of widgets in Smart Stacks.

## See Also

### Time clues

- [date(_:kind:)](relevancekit/relevantcontext/date(_:kind:).md)
- [date(interval:kind:)](relevancekit/relevantcontext/date(interval:kind:).md)
- [date(range:kind:)](relevancekit/relevantcontext/date(range:kind:).md)
- [RelevantContext.DateKind](relevancekit/relevantcontext/datekind.md)
- [date(from:to:)](relevancekit/relevantcontext/date(from:to:).md)
