Skip to content

Instance Method

format(_:)

iOS 15.0+ iPadOS 15.0+ Mac Catalyst 15.0+ macOS 12.0+ tvOS 15.0+ watchOS 8.0+
Creates a locale-aware string representation from a date interval.
func format(_ v: Range<Date>) -> String

Parameters

v

The date range to format.

Return Value

A string representation of the date range.