java.util.Date datatype from XML datasource

Hi,

I've got an XML datasource, which has date fields in it that look like:
<DStartDate>Fri Jul 01 00:00:00 EST 2005</DStartDate>

In my sub-sub-sub report, I've defined this field with the correct path etc. but if I set the type to java.util.Date and dag it onto my report (setting the display properties to java.util.Date and selecting a pattern), then when I go into preview I get this error:

Error evaluating expression:
Source text : $F{CoverageStartDate}
Caused by: java/util/String incompatible with java/util/Date


Just wondered if I this is because I'm using XML, everything is treated as a string ? Is there any easy way to convert it into a date type ? or am I better off pre-formatting it when we make the XML ?
This topic is archived Other recent topics