- From: Saurabh Agarwal <saurabh.agarwal@staralliance.com>
- Date: Tue, 24 Sep 2002 06:30:29 -0400 (EDT)
- To: <xmlschema-dev@w3.org>
Received on Wednesday, 25 September 2002 03:50:44 UTC
Hi, Is it possible to change the format of a dateTime attribute using patterns? If yes, can I have some examples... For instance, is it possible to restict the dateTime (CCYY-MM-DDThh:mm:ss) to just the 'Date' (DD) or "Hours and Minutes" (hhmm). for example....something like.... ---------------------------------------------------- <xsd:simpleType name="utcDate"> <xsd:restriction base="xsd:dateTime"> <xsd:pattern value="DD"/> </xsd:restriction> </xsd:simpleType> ------------------------------------------------------------------- <xsd:simpleType name="utcTime"> <xsd:restriction base="xsd:dateTime"> <xsd:pattern value="hhmm"/> </xsd:restriction> </xsd:simpleType> ---------------------------------------------------- Thanks, Saurabh
Received on Wednesday, 25 September 2002 03:50:44 UTC