- From: Hanna <lhnhanna@hotmail.com>
- Date: Thu, 6 Feb 2003 12:36:06 +0800
- To: <xmlschema-dev@w3.org>
Received on Thursday, 6 February 2003 01:26:33 UTC
Dear all,
I would like to ask how to customize date type such as MM-DD-CCYY, or YY/MM/DD instead of the default CCYY-MM-DD in schema.
I have tried the following but the validation result is that the date value is invalid.
Please help.
xsd:
<simpleType name='mydatetype'>
<restriction base='date'>
<pattern value='MM-DD-CCYY'/ >
</restriction>
</simpleType>
xml:
<birthday>10-29-2002</birthday>
Regards,
Hanna
Received on Thursday, 6 February 2003 01:26:33 UTC