       DateFormat formatter = DateFormat.getDateInstance(DateFormat.FULL,
                        this.locale);

        // formats and sets the value
        writer.setValue(formatter.format(date));

}</pre></div><p>And the other way around... in order to unmarshall, we create
a <i>GregorianCalendar</i>, retrieves the localized <i>DateFormat</i>
instance, parses the string into a <i>Date</i> and puts this date in the
original
<i>GregorianCalendar</i>:</p><div class="Source Java"><pre>public Object unmarsha