This code is used to find the current age including weeks and days using SimpleDateFormat class.
It is coded to provide readymade java code for age calculation. The user has to input the Date of Birth and the machine will calculate your current age including weeks and days.
DobConversion.java file is attached with this document which contains SimpleDateFormat class to define a pattern, Calendar class to get time functionalities, and LocalDate class to find the current date. The format for taking input is YYYY/MM/DD.
You can also specify some conditions as per your requirements.
Submitted by Jaswinder Singh (Jaswinder)
Download packets of source code on Coders Packet
Comments