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

how to add monthS on date?

 
adair jen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I WANT TO CALUATE DATEB=DATEA + n MONTHS
Would someone help me??
Thanks!!
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the java.util.Calendar class.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic