Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to conver string date to sql date

843854Jul 8 2005 — edited Jul 8 2005
Hi,

i have a html form which will populate the date in the text field using popup window in the mm\dd\yy format .

In the servlet i first retrieve the value as string object and need to store that one the database. using setDate method of prepared statement
The date should be of type sql date only.

so my question is how to convert the string representation of the date to sql date.

Thanx in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 5 2005
Added on Jul 8 2005
1 comment
35 views