Meaningless Drivel is fun!*
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 Murach's Java Servlets and JSP this week in the Servlets 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)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Date and Calender help
 
Similar Threads
How to get tomorrow's date?
Date and Calendar
Date - finding tomorrow
Is java Date/Calendar a bug?
getting a Date that is 30 days ago from today