Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
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