This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Date - finding tomorrow Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Date - finding tomorrow" Watch "Date - finding tomorrow" New topic

Date - finding tomorrow

Mary Taylor
Ranch Hand

Joined: Sep 11, 2000
Posts: 319
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?
James Swan
Ranch Hand

Joined: Jun 26, 2001
Posts: 403
Kind of verbose, but here's one way:
Mary Taylor
Ranch Hand

Joined: Sep 11, 2000
Posts: 319
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!
I agree. Here's the link:
subject: Date - finding tomorrow
Similar Threads
Date calculation
how can i get yesterdays date?
JTable dates
Regarding db.db file
Calendar Object to String