displayName

A textual representation of the day, suitable for display purposes. The localized name will be returned, if available. If not, the ISO day of week number will be returned instead.

The result depends on the configured DateTimeTextProvider and may differ between platforms.

Return

the localized name or number if unavailable for the specified locale

See also

localizedName
Link copied to clipboard

Parameters

locale

the locale

style

the style of text

fun displayName(style: TextStyle, locale: Locale): String