locale
The locale to use when formatting date and time values.
Declaration
var locale: Locale! { get set }Discussion
The default value of this property is the current user’s locale, which is accessible from the current method of NSLocale. You can change this value to a different locale to generate strings based on that locale.