File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Adding weeks to a date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Adding weeks to a date" Watch "Adding weeks to a date" New topic
Author

Adding weeks to a date

Sahil Sharma
Ranch Hand

Joined: Aug 27, 2003
Posts: 152
Hi All,

I have system date with me and i want to add weeks to it. 1, 2, 3 or 4 weeks, depends on user selection. but options available are only 4. 1-4 weeks.
Also if i want to know what day today is(saturday,sunday) then how to know this ?

Thanks
Vinod Awar
Ranch Hand

Joined: Nov 06, 2006
Posts: 125
Hi

we can know the day like this



and you can also add weeks by using add() method refer java.util.GregorianCalendar API


The biggest bankruptcy is the loss of enthusiasm
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Adding weeks to a date