Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

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 convert Java Date to xml DateTime

843834Mar 6 2006 — edited Apr 24 2008
Hi,
Can anybody tell me how to convert Java's Date object to xml's dateTime.

My xml schema has element which has datatype as dateTime, so its formate is like , 2000-02-20 T 12:00:00
And Java's Date obj's formate is different.
So how to convert java's date to xml's dateTime.

Please give me some hint atlest .
its urgent.


....yogesh
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 22 2008
Added on Mar 6 2006
5 comments
3,716 views