[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    Re: Date Conversion
From:       Jacob Danner <jacob.danner () gmail ! com>
Date:       2010-02-03 21:14:06
Message-ID: bb04eb0a1002031314l47841faeqb6bdecc18513490b () mail ! gmail ! com
[Download RAW message or body]

The format of the date value is defined by the schema specification
(http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#date)

Changing the format would no longer meet the specification and would
cause validation failures later.
If you only need certain values, you can try using methods in XmlDate
or XmlCalendar or modify the schema type to something like gYearMonth
based on your requirements.

Also, this is more of a user question, so for more help and eyes
viewing it, please post to the user mailing list next time.
-jacobd

On Wed, Feb 3, 2010 at 12:58 PM, dg69 <deepanjan_ganguly@bcbsok.com> wrote:
> when the XSD has a element of "date" type the java bean makes it of type
> Calendar. Is there a way I can convert the date which gets serialized in the
> XML file in the mmDDyyyy format instead of the default format of
> yyyy-mm-dd-hh-mm....
> ________________________________
> View this message in context: Date Conversion
> Sent from the Xml Beans - Dev mailing list archive at Nabble.com.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic