import java.time.LocalDate
import java.time.format.DateTimeFormatter
object FutureDateCalculator extends App {
def addMonthsToDate(months: Int, date: LocalDate = LocalDate.now()): LocalDate = {
date.plusMonths(months)
}
val futureDate = addMonthsToDate(6)
val formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd")
println(s"Date six months from now: ${futureDate.format(formatter)}")
}
/*
run:
Date six months from now: 2025-12-12
*/