Answers for "calculate age"

-1

calculate age

fun getAge(year: Int, month: Int, dayOfMonth: Int): Int {
    return Period.between(
                LocalDate.of(year, month, dayOfMonth),
                LocalDate.now()
            ).years
}
Posted by: Guest on October-08-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language