This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes add day to current date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "add day to current date" Watch "add day to current date" New topic
Author

add day to current date

james ong
Greenhorn

Joined: Aug 01, 2006
Posts: 2
hihi..

how can i add days to the current date.e.g i want ot add 5 days to the current date.

jamesocw
Naseem Khan
Ranch Hand

Joined: Apr 25, 2005
Posts: 809
Well If you want to add 5 days to the system date, then you can use Calendar class as below:




Naseem


Asking Smart Questions FAQ - How To Put Your Code In Code Tags
Aaron Harp
Greenhorn

Joined: Jul 12, 2006
Posts: 8
This may be helpful to you.
 
wood burning stoves
 
subject: add day to current date
 
Similar Threads
how can i get the date on next sunday
how to add 30 days to current data?
add days
regarding date in javascript
difference in days