Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding integer to Date

 
Rahul Ghai
Greenhorn
Posts: 21
  • 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
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the solution Peter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic