formatted(_:)
Converts self to its textual representation.
Declaration
func formatted<F>(_ format: F) -> F.FormatOutput where F : FormatStyle, F.FormatInput == DateComponentsParameters
- format:
The format for formatting
self.
Return Value
A representation of self using the given format. The type of the representation is specified by FormatStyle.FormatOutput.