Contents

string(from:)

Creates and returns an ISO 8601 formatted string representation of the specified date.

Declaration

func string(from date: Date) -> String

Parameters

  • date:

    The date to be represented.

Return Value

A user-readable string representing the date.

See Also

Converting ISO 8601 Dates