Contents

description

A string representation of the date object.

Declaration

var description: String { get }

Discussion

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

Related Documentation

Describing Dates