wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Date class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Date class" Watch "Date class" New topic
Author

Date class

vuthlarhi donald
Ranch Hand

Joined: Jul 31, 2006
Posts: 76
I want to get of after 30 days...if 2day is the 1st of April..The program must return 31st of April..please help me

Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

Look in the API documentation of class Calendar. It contains methods to do date arithmetic.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
wood burning stoves
 
subject: Date class
 
Similar Threads
How to get tomorrow's date?
Convert date format to timestamp
Date function
Date Format ,Please help!
Date format question