How would I create a very basic Java program when a users enters a certain date and wants to add a specific amount of days to that date the program will generate the new date. Example if my start date is today, April 12, 2010 and I want to know what the new date would be in 100 days.
Date Calculator
Collapse
X
-
Look at the Calendar Class, particularly the
set(int year, int month, int date)
and the
add(int field, int amount)
functions.
If you choose to use this, you'll probably be using a GregorianCalend ar.
Comment