This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Today(Yes), Tomorrow(No), Date realated problem. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Today(Yes), Tomorrow(No), Date realated problem." Watch "Today(Yes), Tomorrow(No), Date realated problem." New topic
Author

Today(Yes), Tomorrow(No), Date realated problem.

torsti koistinen
Greenhorn

Joined: Jul 29, 2004
Posts: 4
If only someone could help

All code(s) below gives me a current date,
but I also need to get tomorrows and yesterdays dates.

I think I can�t use simpledateformat because I need to import import java.sql.*;

So if anyone can tell me how to modify some of the codes below, It would be great. All I need is that I get forexample this yesterdays or tomorrows date with the
"codes" below:


these are the codes what I have try to use without success

1.


2.


3.
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

check out this thread I think it will point you in the right directions.
 
wood burning stoves
 
subject: Today(Yes), Tomorrow(No), Date realated problem.
 
Similar Threads
Variable type question?
JSP and SQL problem
util.Date to sql.Date
conversion of string into java.sql.Date
inserting a date field