WithYearMonth

Functions specific to the datetime format builders containing the year and month fields.

Inheritors

Functions

Link copied to clipboard
abstract fun monthName(names: MonthNames)

A month name (for example, "January").

Link copied to clipboard
abstract fun monthNumber(padding: Padding = Padding.ZERO)

A month-of-year number, from 1 to 12.

Link copied to clipboard
abstract fun year(padding: Padding = Padding.ZERO)

A year number.

Link copied to clipboard
abstract fun yearMonth(format: DateTimeFormat<YearMonth>)

An existing DateTimeFormat for the date part.

Link copied to clipboard
abstract fun yearTwoDigits(baseYear: Int)

The last two digits of the ISO year.