Background: I used the "jaxb:javaType" custom binding feature to change dates to be appear in the Java Date type rather than the XMLGregorianCalendar type when I generated classes (at request of the developers for ease of use).


Problem: No problem generating the classes. However, when I marshall the class data back into XML, the dates appear as the entire Java date - including hh mm ss and time zone. Most of the time I am dealing with a birth date or effect date so I was wondering if there was a marshalling option/technique that would allow me to marshall it as "yyyymmdd"?

Thanks!