org.exolab.castor.types.Date parsedDate = new org.exolab.castor.types.Date(trimmed);
return parsedDate.toDate();
}
DateTime parsedDateTime = new DateTime(trimmed);
return parsedDateTime.toDate();
} // -- parse
/**
* Returns the given date in a String format, using the ISO8601 format as
* specified in the W3C XML Schema 1.0 Recommendation (Part 2: Datatypes)