Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help: Setting java.sql.Date Object.

Status
Not open for further replies.
Joined
Jan 8, 2001
Messages
163
Location
US
Hello all! I have a java.sql.date object called startdate that I need to initialize and set. Initializing it is easy enough

java.sql.Date startdate;


But how do I set string variable (ie/ String SomeStringDate = "01/01/2001")
to startdate's java.sql.Date format?

Basically I need to set startdate = SomeStringDate entered by the user.

Does anyone have an example of this? The format of the string doesn't really have to be sa it is above, I'm just looking for an example out there. Please help if you can. Thank You!!!

Thanks in advance,
CrystalVisualBOracle
 
I replied to this thread: thread269-150208 in the Java Forum.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top