posted 17 years ago
Hi,
I am looking for date functions which will allow me to subract 1 day, 1 week, 1 month, 3 mths, 1 year.
Date now = new Date();
From now, I want to subtract 1 day, 1 week, 1 month, 3 mths, 1 year.
I searched the the java.util classes.
java.uil.Calendar has a add() method but it doesn't return a java.util.Date object.
Can anyone tell me how i could do this subtraction and the return value is a java.util.Date object.
Thanks,
Gayatri