Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Converting a String date to a java.sql.date?

0 views
Skip to first unread message

Paulo Nunes

unread,
Jan 24, 2001, 10:03:10 AM1/24/01
to
How can I convert a String date in the format: "yyyy-MM-dd"
to a java.sql.date so I can post it in a database field?
Please help me, it is very urgent!!!

Thanks in advance

Torsten Welches

unread,
Jan 24, 2001, 10:31:36 AM1/24/01
to
Paulo,

String s = "1989-11-15";
java.sql.Date d = java.sql.Date.valueOf(s);

Torsten


Paulo Nunes schrieb in Nachricht <3A6EEEAE...@fasoft.pt>...

Paulo Nunes

unread,
Jan 24, 2001, 12:18:27 PM1/24/01
to
It worked!
Thank you very much.
0 new messages