Instance Property


A string representation of the date object.


var description: String { get }


The representation is useful for debugging only.

There are a number of options to acquire a formatted string for a date including: date formatters (see DateFormatter and Data Formatting Guide), and the NSDate methods description(with:), date(withCalendarFormat:timeZone:), and description(withCalendarFormat:timeZone:locale:)

See Also

Describing Dates

func description(with: Any?) -> String

Returns a string representation of the date using the given locale.

var customPlaygroundQuickLook: PlaygroundQuickLook

A custom playground Quick Look for this object.