DatePickerFormatter

A date formatter interface used by DatePicker.

Functions

Link copied to clipboard
abstract fun formatDate(dateMillis: Long?, locale: CalendarLocale, forContentDescription: Boolean = false): String?

Format a given dateMillis to a string representation of the date (i.e. Mar 27, 2021).

Link copied to clipboard
abstract fun formatMonthYear(monthMillis: Long?, locale: CalendarLocale): String?

Format a given monthMillis to a string representation of the month and the year (i.e. January 2023).