locale(_:)
Modifies the date format style to use the specified locale.
Declaration
func locale(_ locale: Locale) -> Date.FormatStyleParameters
- locale:
The locale to use when formatting a date.
Return Value
A date format style with the provided locale.