---
title: date
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsdatecomponents/date
---

# date

The date calculated from the current components using the stored calendar.

## Declaration

```swift
var date: Date? { get }
```

## Discussion

Discussion Returns nil if the calendar property value of the receiver is nil or cannot convert the receiver into an NSDate object. See Calendars, Date Components, and Calendar Units in Date and Time Programming Guide.

## See Also

### Related Documentation

- [Date and Time Programming Guide](apple-archive/documentation/Cocoa/Conceptual/DatesAndTimes.md)

### Validating a Date

- [isValidDate](foundation/nsdatecomponents/isvaliddate.md)
- [isValidDate(in:)](foundation/nsdatecomponents/isvaliddate(in:).md)
- [Undefined Components](foundation/1430344-undefined-components.md)
