---
title: day
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/datecomponents/day
---

# day

A day or count of days.

## Declaration

```swift
var day: Int? { get set }
```

## Discussion

Discussion note: This value is interpreted in the context of the calendar in which it is used.

## See Also

### Accessing Weeks and Days

- [weekOfMonth](foundation/datecomponents/weekofmonth.md)
- [weekOfYear](foundation/datecomponents/weekofyear.md)
- [weekday](foundation/datecomponents/weekday.md)
- [weekdayOrdinal](foundation/datecomponents/weekdayordinal.md)
