This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Date and Calender help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Date and Calender help" Watch "Date and Calender help" New topic
Author

Date and Calender help

vuthlarhi donald
Ranch Hand

Joined: Jul 31, 2006
Posts: 76
Piyush Porwal
Ranch Hand

Joined: Apr 09, 2008
Posts: 30
I suppose you should use calendar.add(Calendar.DAY_OF_YEAR, 30 ),
as Calendar.DAY_OF_MONTH must be getting overflow from it's max value.


-Piyush Porwal (Junk box)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Date and Calender help
 
Similar Threads
Is java Date/Calendar a bug?
Date - finding tomorrow
Date and Calendar
getting a Date that is 30 days ago from today
How to get tomorrow's date?