Skip to content

Instance MethodFoundationInternationalization

weekday(_:)

iOS 15.0+ iPadOS 15.0+ Mac Catalyst 15.0+ macOS 12.0+ tvOS 15.0+ watchOS 8.0+
Modifies the date interval format style to include the weekday.
func weekday(_ format: Date.IntervalFormatStyle.Symbol.Weekday = .abbreviated) -> Date.IntervalFormatStyle

Parameters

format

The weekday format style to apply.

Return Value

A date interval format style that includes the specified weekday style.