<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Date/IntervalFormatStyle/init(date:time:locale:calendar:timeZone:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation4DateV19IntervalFormatStyleV4date4time6locale8calendar0G4ZoneAeC0dE0V0bE0VSg_AL04TimeE0VSgAA6LocaleVAA8CalendarVAA0kJ0Vtcfc"
  },
  "title" : "init(date:time:locale:calendar:timeZone:)"
}
-->

# init(date:time:locale:calendar:timeZone:)

Creates an instance using the provided date, time, locale, calendar, time zone, and capitalization context.

```
init(date: Date.IntervalFormatStyle.DateStyle? = nil, time: Date.IntervalFormatStyle.TimeStyle? = nil, locale: Locale = .autoupdatingCurrent, calendar: Calendar = .autoupdatingCurrent, timeZone: TimeZone = .autoupdatingCurrent)
```

## Parameters

`date`

The [`Date.FormatStyle.DateStyle`](/documentation/Foundation/Date/FormatStyle/DateStyle) for creating the string representation of the date interval.

`time`

The [`Date.FormatStyle.TimeStyle`](/documentation/Foundation/Date/FormatStyle/TimeStyle) for creating the string representation of the date interval.

`locale`

The [`Locale`](/documentation/Foundation/Locale) for creating the string representation of the date interval.

`calendar`

The [`Calendar`](/documentation/Foundation/Calendar) for creating the string representation of the date interval.

`timeZone`

The [`TimeZone`](/documentation/Foundation/TimeZone) for creating the string representation of the date interval.

## Discussion

Customize the date interval string by providing a date style, time style, locale, calendar, time zone, and capitalization scheme.

Values for date style are [`complete`](/documentation/Foundation/Date/FormatStyle/DateStyle/complete), [`long`](/documentation/Foundation/Date/FormatStyle/DateStyle/long), [`abbreviated`](/documentation/Foundation/Date/FormatStyle/DateStyle/abbreviated), [`numeric`](/documentation/Foundation/Date/FormatStyle/DateStyle/numeric), [`omitted`](/documentation/Foundation/Date/FormatStyle/DateStyle/omitted), or `none`. Time style values are [`complete`](/documentation/Foundation/Date/FormatStyle/TimeStyle/complete), [`standard`](/documentation/Foundation/Date/FormatStyle/TimeStyle/standard), [`shortened`](/documentation/Foundation/Date/FormatStyle/TimeStyle/shortened), [`omitted`](/documentation/Foundation/Date/FormatStyle/TimeStyle/omitted), or `none`.

---

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)