<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WeatherKit",
  "identifier" : "/documentation/WeatherKit/WeatherQuery/daily(startDate:endDate:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "WeatherKit"
    ],
    "preciseIdentifier" : "s:10WeatherKit0A5QueryVA2A8ForecastVyAA03DayA0VGRszlE5daily9startDate03endH0ACyAHG10Foundation0H0V_AOtFZ"
  },
  "title" : "daily(startDate:endDate:)"
}
-->

# daily(startDate:endDate:)

Returns weather for an arbitrary range of days, with the following caveats:

```
static func daily(startDate: Date, endDate: Date) -> WeatherQuery<T>
```

## Parameters

`startDate`

the lower boundary of the time range for the forecast (inclusive)

`endDate`

the upper boundary of the time range for the forecast (exclusive)

## Return Value

a daily forecast query for the specified time range

## Discussion

- Historical data is available from Aug 1, 2021.
- Forecasts are available up to 10 days in the future.
- Each request will return a maximum of 10 days.
- A day is included in the forecast if midnight in local time is included in the range of `startDate` (inclusive) to `endDate` (exclusive).

---

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)