Top.Mail.Ru
September 20th, 2004 - Java developers — LiveJournal
? ?

Java developers

September 20th, 2004
Image

12:32 pm - Imagelemmywinks30 - Date Calculations

Hey everyone,
I can't seem to figure how to do this:

I want to get today's date and calculate the date that was 9 months prior.
Is it something like this:

java.util.Date today = new java.util.Date();
java.util.Date finalDate = (today.getTime() - ?????);

what would I replace the ???? with? I am not sure what format, if it wants it in days, months.

Thank you :)
Powered by LiveJournal.com
Image