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 gkittelson 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.
Jan 8, 2001
163
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top