toMonthDay

fun String.toMonthDay(vararg formats: String?): MonthDay?

Works off of String representations of MonthDay (ISO default: "--12-25"). When formats are provided, each format is attempted in-order until one succeeds.

Return

MonthDay? Null means couldn't parse, else parsed MonthDay.

Parameters

this

String representation of MonthDay.

formats

String? vararg of formats to attempt when parsing.