---
title: withTime
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/iso8601dateformatter/options/withtime
---

# withTime

## Declaration

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

## Discussion

Discussion The date representation includes the time. The format for time is HH:mm:ss.

## See Also

### Constants

- [withYear](foundation/iso8601dateformatter/options/withyear.md)
- [withMonth](foundation/iso8601dateformatter/options/withmonth.md)
- [withWeekOfYear](foundation/iso8601dateformatter/options/withweekofyear.md)
- [withDay](foundation/iso8601dateformatter/options/withday.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)
