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 String into JDate? Is this possible?

807589Sep 23 2008 — edited Sep 23 2008
How can I convert a String to a JDate Format?

I have a String with the following value
public String dateFrom = "2008-07-22";
I need to set an object's value to the above date field
That object accepts a trade date as JDate

Message message = new Message();

message.setDate(JDate date) 

I need to replace JDate with the value of dateFrom
Is this possible? or is there an alternative?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 21 2008
Added on Sep 23 2008
5 comments
771 views