Hi,
Castor is marshalling/unmarshalling java.util.Date using the XML Schema representation for date-time which is ISO8601. AFAIK, if you wish to use your own format the only way is either to use a String in your bean or use another pair of getter/setter like getSaiDateAsString/setSailDateAsString and specify the get-method/set-method in your mapping file.
Regards,
Claude
> -----Original Message-----
> From: Mounagurusamy, Jayakumar (HAL)
> [mailto:[EMAIL PROTECTED]]
> Sent: 4 August 2004 21:14
> To: [EMAIL PROTECTED]
> Subject: [castor-user] Date in string Format
>
>
> Hello All,
>
> I am trying to marshal a java.util.Date object to of format
> "mmddccyy",
> by default castor does this format
> <SailDate>2004-09-04T00:00:00.000-07:00</SailDate>. Is there
> any way for
> me to specify the string Date format that I want in the XML and vice
> versa
>
> Any help will be appreciated
>
> Thanks
> Jay
>
>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
