val Date.weekOfMonth: Intval DateTime.weekOfMonth: Intval OffsetDateTime.weekOfMonth: Intval ZonedDateTime.weekOfMonth: Int
The week of the month, from 0-6, calculated using the ISO week definition.
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)fun Date.weekOfMonth(settings: WeekSettings): Intfun DateTime.weekOfMonth(settings: WeekSettings): Intfun OffsetDateTime.weekOfMonth(settings: WeekSettings): Intfun ZonedDateTime.weekOfMonth(settings: WeekSettings): Int
The week of the month, from 0-6, calculated using the week definition in settings.
(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)fun Date.weekOfMonth(locale: <ERROR CLASS>): Intfun DateTime.weekOfMonth(locale: <ERROR CLASS>): Intfun OffsetDateTime.weekOfMonth(locale: <ERROR CLASS>): Intfun ZonedDateTime.weekOfMonth(locale: <ERROR CLASS>): Int
The week of the month, from 0-6, calculated using the default week definition associated with the provided locale.
Keep in mind that that the system's calendar settings may differ from that of the default locale on some platforms. To respect the system calendar settings, use WeekSettings.systemDefault instead.
(jvm)fun Date.weekOfMonth(locale: Locale): Intfun DateTime.weekOfMonth(locale: Locale): Intfun OffsetDateTime.weekOfMonth(locale: Locale): Intfun ZonedDateTime.weekOfMonth(locale: Locale): Int
The week of the month, from 0-6, calculated using the default week definition associated with the provided locale.
Keep in mind that that the system's calendar settings may differ from that of the default locale on some platforms. To respect the system calendar settings, use WeekSettings.systemDefault instead.