|
|
|
start date: Fri, 17 Aug 2007 06:58:01 -0700,
posted on: microsoft.public.dotnet.xml
back
| Thread Index |
|
1
Prashant C
|
|
2
Martin Honnen
|
DateTime Format
I declared one element in my XML Schema as "xs:dateTime", when I validate the
XML with the date in the format "dd/mm/yyyy", it shows the error that the
give value is not valid, so my question is how to change the date format in
XML Schema ??
Please, help me in solving the problem
--
Regards,
Prashant C
Date:Fri, 17 Aug 2007 06:58:01 -0700
Author:
|
Re: DateTime Format
Prashant C wrote:
> I declared one element in my XML Schema as "xs:dateTime", when I validate the
> XML with the date in the format "dd/mm/yyyy", it shows the error that the
> give value is not valid, so my question is how to change the date format in
> XML Schema ??
xs:dateTime means yyyy-mm-ddThh:mm:ss.sss plus optional time zone
information, see <http://www.w3.org/TR/xmlschema-2/#dateTime>.
There is also xs:date which has format yyyy-mm-dd
<http://www.w3.org/TR/xmlschema-2/#date>.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Date:Fri, 17 Aug 2007 16:07:30 +0200
Author:
|
|
|