[Solved] Measure difference between dates [closed]


You will always have problems if you try to roll your own date/time arithmetic. Use the functions provided by the JDK, java.util.Calendar and the new java.time package, or a library like Joda Time. Try:

Period.between(date-of-birth , today's date).

1

solved Measure difference between dates [closed]