Instance Property


The calendar units to include in the formatted string.


var calendarUnits: NSCalendar.Unit { get set }


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.