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!

jaxb , xs:date and java.util.Calendar

843834Nov 24 2003 — edited May 2 2010
Hello all,

My schema has an element of type xs:date, which jaxb maps to a java.util.Calendar. If I create a Calendar object with Calendar.getInstance(), it marshalls to "2003-11-24-05:00".

How can I get it to marshall to just "2003-11-24"?

Thanks,
Brian

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 30 2010
Added on Nov 24 2003
15 comments
8,151 views