can anyone please help me on assingment no 8 daysold.....
i m not able to develop the code for it can anyone please help me on this that how can i develop a programm to calculate how many days old i am....
question is :-
Write a program that tells you how many days old you are.
See www.javaranch.com/common.jsp and look for the GDate and JDate classes. Creating objects from these classes will help you to complete this assignment. You will need to download jr.jar and work it into your classpath in order to use these classes.
In other words, I want to type
java DaysOld 2000-1-2
and see
You were born on January 2, 2000
Today is November 18, 2000
You are now 321 days old.
(with the correct information for the dates and number of days)
To get this to work, you must properly configure your classpath. If you write all of these programs in the C:\Java directory, you could put the .jar file in the same directory and change your classpath to "C:\Java;C:\Java\jr.jar". Be sure to put "import com.javaranch.common.* ;" at the top of your DaysOld.java file.