<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RelevanceKit",
  "identifier" : "/documentation/RelevanceKit/RelevantContext/date(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RelevanceKit"
    ],
    "preciseIdentifier" : "s:12RelevanceKit15RelevantContextV4dateyAC10Foundation4DateVFZ"
  },
  "title" : "date(_:)"
}
-->

# date(_:)

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

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

## Parameters

`exact`

The time the widget is most relevant to a person.

## Return Value

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

## 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:)`](/documentation/RelevanceKit/RelevantContext/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 <doc://com.apple.documentation/documentation/WidgetKit/Widget-Suggestions-In-Smart-Stacks>.

---

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)