Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Date - finding tomorrow

 
Mary Taylor
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a date in a String format, "11-08-2002" and I'd like to get the next day. I'm feeling a bit overwhelmed with all the information about dates. How would I go about this?
Thanks.
 
James Swan
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kind of verbose, but here's one way:
 
Mary Taylor
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I think many of the solutions to Date problems are verbose. I was making this too difficult, I see. I also need "yesterday" which should be easy with this code as a basis.
Thank you so much!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic