formatLocalized

expect fun LocalDate.formatLocalized(dateStyle: FormatStyle = FormatStyle.MEDIUM): String

Formats a localized string representing a LocalDate.

Return

the localized string.

Parameters

dateStyle

the amount of detail to include for the date.


expect fun LocalDateTime.formatLocalized(dateStyle: FormatStyle = FormatStyle.MEDIUM, timeStyle: FormatStyle = FormatStyle.MEDIUM): String

Formats a localized string representing a LocalDateTime.

Return

the localized string.

Parameters

dateStyle

the amount of detail to include for the date component.

timeStyle

the amount of detail to include for the time component.

actual fun <Error class: unknown class>.formatLocalized(dateStyle: <Error class: unknown class>): String
actual fun <Error class: unknown class>.formatLocalized(dateStyle: <Error class: unknown class>, timeStyle: <Error class: unknown class>): String
actual fun LocalDate.formatLocalized(dateStyle: FormatStyle): String
actual fun LocalDateTime.formatLocalized(dateStyle: FormatStyle, timeStyle: FormatStyle): String