Kotlin DateTime
11 functions
LocalDate.nowLocalDate.now()Obtains the current date from the system clock in the default time-zone.
LocalDateTime.nowLocalDateTime.now()Obtains the current date-time from the system clock in the default time-zone.
LocalDate.ofLocalDate.of(year, month, day)Obtains an instance of LocalDate from a year, month and day.
plusDaysdate.plusDays(n)Returns a copy of this date with the specified number of days added.
minusDaysdate.minusDays(n)Returns a copy of this date with the specified number of days subtracted.
plusMonthsdate.plusMonths(n)Returns a copy of this date with the specified number of months added.
isBeforedate.isBefore(other)Checks if this date is before the specified date.
isAfterdate.isAfter(other)Checks if this date is after the specified date.
formatdate.format(DateTimeFormatter.ofPattern(pattern))Formats this date using the specified formatter.
parseLocalDate.parse(str, formatter?)Obtains an instance of LocalDate from a text string.
ChronoUnit.betweenChronoUnit.DAYS.between(d1, d2)Calculates the amount of time between two temporal objects.
