---
title: withDay
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/iso8601dateformatter/options/withday
---

# withDay

## Declaration

```swift
static var withDay: ISO8601DateFormatter.Options { get }
```

## Discussion

Discussion The date representation includes the day. The format for day is inferred based on provided options: If withMonth is specified, dd is used. If withWeekOfYear is specified, ee is used. Otherwise, DDD is used.

## See Also

### Constants

- [withYear](foundation/iso8601dateformatter/options/withyear.md)
- [withMonth](foundation/iso8601dateformatter/options/withmonth.md)
- [withWeekOfYear](foundation/iso8601dateformatter/options/withweekofyear.md)
- [withTime](foundation/iso8601dateformatter/options/withtime.md)
- [withTimeZone](foundation/iso8601dateformatter/options/withtimezone.md)
- [withSpaceBetweenDateAndTime](foundation/iso8601dateformatter/options/withspacebetweendateandtime.md)
- [withDashSeparatorInDate](foundation/iso8601dateformatter/options/withdashseparatorindate.md)
- [withColonSeparatorInTime](foundation/iso8601dateformatter/options/withcolonseparatorintime.md)
- [withColonSeparatorInTimeZone](foundation/iso8601dateformatter/options/withcolonseparatorintimezone.md)
- [withFullDate](foundation/iso8601dateformatter/options/withfulldate.md)
- [withFullTime](foundation/iso8601dateformatter/options/withfulltime.md)
- [withInternetDateTime](foundation/iso8601dateformatter/options/withinternetdatetime.md)
