Instance Method インスタンスメソッド

date(from:)

Creates and returns a date object from the specified ISO 8601 formatted string representation. 指定されたISO 8601書式設定された文字列表現から日付オブジェクトを作成して返します。

Declaration 宣言

func date(from string: String) -> Date?

Parameters パラメータ

string

The ISO 8601 formatted string representation of a date. ある日付のISO 8601書式設定された文字列表現。

Return Value 戻り値

A date object, or nil if no valid date was found. 日付オブジェクト、または有効な日付が見つけられなかったならばnil

See Also 参照

Converting ISO 8601 Dates ISO 8601日付を変換する