Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Date and Calender help

 
vuthlarhi donald
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Piyush Porwal
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic