Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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