Instance Property

calendarUnits

The calendar units to include in the formatted string.

Declaration

var calendarUnits: NSCalendar.Unit { get set }

Discussion

For a list of supported calendar units, see Date Format Options.

See Also

Getting the Date Information

var date: Date

The date to display.

var timeZone: TimeZone?

The time zone used in the formatted string.

var uppercase: Bool

A Boolean value that determines whether the date string displays in uppercase.