Contents

weekday(_:)

Modifies the date format style to use the specified weekday format style.

Declaration

func weekday(_ format: Date.FormatStyle.Symbol.Weekday = .abbreviated) -> Date.FormatStyle

Parameters

  • format:

    The weekday format style applied to the date format style.

Return Value

A date format style modified to include the specified week format style.

Discussion

Possible values of Date.FormatStyle.Symbol.Weekday include abbreviated, narrow, oneDigit, short, twoDigits, and wide.

See Also

Specifying the Date Format