@Test
fun dateFormatTest() {
val dateTimeFormatter = DateTimeFormatter.ofPattern("yyyyMMdd")
val recurringNext = "20230624"
val date = LocalDate.parse(recurringNext, dateTimeFormatter)
val dateTime = LocalDateTime.of(date, LocalDateTime.MAX.toLocalTime())
println(dateTime)
val nextMonth = dateTime.plusMonths(1)
println(nextMonth)
val format = dateTimeFormatter.format(nextMonth).toString()\
println(format)
}
https://lenditkr.github.io/MySQL/fractional-seconds-rouding-problem/