Skip to Main Content

Java Programming

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!

convert from String to Date

807569Sep 21 2006 — edited Sep 21 2006
Hello,

I have the following string: "Thu Apr 22 00:00:00 IDT 2004"
and I need to convert it to Date object.

I tried to use Date.parse() and Date.valueOf(),
but then I get the IllegalArgumentException.

How can I do this?

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 19 2006
Added on Sep 21 2006
5 comments
246 views