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

add day to current date

 
james ong
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well If you want to add 5 days to the system date, then you can use Calendar class as below:




Naseem
 
Aaron Harp
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This may be helpful to you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic