W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2003

custom date type in xml schema

From: Hanna <lhnhanna@hotmail.com>
Date: Thu, 6 Feb 2003 12:36:06 +0800
To: <xmlschema-dev@w3.org>
Message-ID: <OE37vcTAcGlVADHpc0000006f83@hotmail.com>
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.
<simpleType name='mydatetype'>
        <restriction base='date'>
            <pattern value='MM-DD-CCYY'/ >

Received on Thursday, 6 February 2003 01:26:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:09 UTC