W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2001

Re: dateTime and Patterns.

From: Martin Duerst <duerst@w3.org>
Date: Wed, 29 Aug 2001 18:14:13 +0900
Message-Id: <>
To: martin.me.roberts@bt.com, xmlschema-dev@w3.org
At 12:04 01/08/28 -0400, martin.me.roberts@bt.com wrote:
>Is it possible to change the format of a dateTime attribute using patterns?

Restrict - yes, change - no.

I.e. you can write a pattern that restricts dates to be e.g.
only in even years. But you cannot write a pattern to change
the order of year-month-day. For the later, the best thing
you can do is something like:

<date value='2001-08-29'>Wednsday August 29, 2001</date>

Regards,   Martin.
Received on Wednesday, 29 August 2001 05:14:24 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:52 UTC