• Post Reply Bookmark Topic Watch Topic
  • New Topic

substracting months  RSS feed

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I am very new to java programming. I am getting a date from the database. How do I substract or add two months to this date and get the new date value. Can anybody help me.
Thanks
 
Author and ninkuma
Marshal
Posts: 66307
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the java.util.GregorianCalendar class and its add() method.
hth,
bear
[ April 13, 2003: Message edited by: Bear Bibeault ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!