title: How to change programmatically the default JAXB date serialization?
body: <p>Is there a way to change the default way jaxb serialize/deserialize types, dates in my case, without specifying it through annotation and/or through xml jaxb binding as mentioned here
  <a href="http://jaxb.java.net/guide/Using_different_datatypes.html" rel="noreferrer">http://jaxb.java.net/guide/Using_different_datatypes.html</a></p>
  
  <p>I'd basically like to do something like:</p>
  
  <pre><code>    JAXBContext jaxbContext = ...;
      Marshaller marshaller = jaxbContext.createMarshaller().setAdapter(new DateAdapter(dateFormat));
  </code></pre>
  
  <p>To have a preconfigured JaxBContext or Marshaller/Unmarshaller that serialize/deserialize dates in a customized way..</p>
  
  <p>Couldn't find any resource that shows how to do expect through annotations or statically with the xml binding file..
  Thanks!</p>