File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding integer to Date

 
Rahul Ghai
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i add any integer number to a date? For example adding 20 to 12-11-2001 to get the result 02-12-2001.
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Avoiding any deprecated calls,And don't fall into the trap ofThis code will bite you when you're going from summer time to winter time or vice versa.
- Peter
 
Rahul Ghai
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the solution Peter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic