<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSDate/description",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSDate(py)description"
  },
  "title" : "description"
}
-->

# description

A string representation of the date object.

```
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`](/documentation/Foundation/DateFormatter) and [Data Formatting Guide](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/DataFormatting/DataFormatting.html#//apple_ref/doc/uid/10000029i)), and the `NSDate` methods [`description(with:)`](/documentation/Foundation/NSDate/description(with:)), [`date(withCalendarFormat:timeZone:)`](/documentation/Foundation/NSDate/date(withCalendarFormat:timeZone:)), and [`description(withCalendarFormat:timeZone:locale:)`](/documentation/Foundation/NSDate/description(withCalendarFormat:timeZone:locale:))

## See Also

[`description(withCalendarFormat:timeZone:locale:)`](/documentation/Foundation/NSDate/description(withCalendarFormat:timeZone:locale:))

Returns a string representation of the date formatted as specified by given conversion specifiers.

[`date(withCalendarFormat:timeZone:)`](/documentation/Foundation/NSDate/date(withCalendarFormat:timeZone:))

Converts the receiver to a calendar date with a given format string and time zone.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)