Originally posted by Peter Primrose:
Hi there,
since i'm not familiar with the Calander class, I wonder if someone can help me out here.
One way to become familiar with a class is to look at the
API docuemntation for the version of
Java you are using. These docs give all the classes and methods in the Standard API. For example, you can look at the docs for
the Calendar class to see all the methods it contains. I strongly suggest you learn how to navigate the API docs to be able to easily look up information or learn about unfamiliar classes.
Say today is 01-Jun-05 and X (variable) is 237 days from today.
how can I calculate how many months, weeks and days are there from 01-jun-05
thanks
peter
I don't know if the Calendar class will be helpful here. I suggest that you step back and figure out how to do this by hand. What steps would you use to calculate the number of months, weeks, and days that gives you the date that is 237 days from 01-Jun-05? If you post some of your ideas here, we will be happy to guide you and help you if you get stuck.
Layne
[ July 30, 2005: Message edited by: Layne Lund ]