calendar
The default calendar to use when formatting date components.
Declaration
var calendar: Calendar? { get set }Discussion
The formatter uses the calendar in this property to format values that do not have an inherent calendar of their own. For example, the formatter uses this calendar when formatting an TimeInterval value.
The default value of this property is the calendar returned by the autoupdatingCurrent method of NSCalendar. Setting this property to nil causes the formatter to use the Gregorian calendar with the en_US_POSIX locale.