dateFormat

fun KalugaDateFormatter.Companion.dateFormat(style: DateFormatStyle = DateFormatStyle.Medium, excludeYear: Boolean, timeZone: KalugaTimeZone = KalugaTimeZone.current(), locale: KalugaLocale = defaultLocale): KalugaDateFormatter

Creates a KalugaDateFormatter that only formats the date components of a KalugaDate

Parameters

style

The DateFormatStyle used for formatting the date components of the KalugaDate. Defaults to DateFormatStyle.Medium.

excludeYear

When true the year will not be part of the format.

timeZone

The KalugaTimeZone for which the date should be formatted. Defaults to KalugaTimeZone.current.

locale

The KalugaLocale for which the date should be formatted. Defaults to KalugaLocale.defaultLocale.