Kotlin Get Day с даты

fun getDay(date: Date): int {
	calendar = Calendar.getInstance()
    calendar.time = date
    return calendar[Calendar.DAY_OF_MONTH]
}
MaarS