formatted(_:)

Formats the date range using the specified style.

Declaration

func formatted<S>(_ style: S) -> S.FormatOutput where S : FormatStyle, S.FormatInput == Range<Date>