getDaysInInterval

fun LocalDate.getDaysInInterval(to: LocalDate): Int

Returns number of days in interval between this date and to date (both inclusive). This means that this method returns 1 when this and to are equal.

Sources

Katlib source
Link copied to clipboard