Contents

locale(_:)

Modifies the date format style to use the specified locale.

Declaration

func locale(_ locale: Locale) -> Date.FormatStyle

Parameters

  • locale:

    The locale to use when formatting a date.

Return Value

A date format style with the provided locale.

See Also

Modifying a Date Format Style