Formats

actual object Formats(source)
expect object Formats(source)

A collection of predefined formats for parsing and formatting YearMonth values.

YearMonth.Formats.ISO is a popular predefined format. YearMonth.parse and YearMonth.toString can be used as convenient shortcuts for it.

Use YearMonth.Format to create a custom kotlinx.datetime.format.DateTimeFormat for YearMonth values.

actual object Formats(source)

Properties

Link copied to clipboard

ISO 8601 extended format, which is the format used by YearMonth.toString and YearMonth.parse.