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

formatting date and time fields

From: Kiran Edukulla <kiran@nightfire.com>
Date: Thu, 21 Feb 2002 10:34:14 -0800
Message-ID: <580DF4AEAC15D411A1D200508BA0E7E40265F2CA@mail>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Hi,

I have a question about date and time formatting in schemas. I need to
output a date field as "MM-DD-CCYY" and time field as HHMM(AM/PM).

Currently I am using xs:date and xs:time as 

      <xs:element name="AAA">
		<xs:complexType>
			<xs:attribute name="value" type="xs:date"
use="required"/>
		</xs:complexType>
	</xs:element>

      <xs:element name="BBB">
		<xs:complexType>
			<xs:attribute name="value" type="xs:time"
use="required"/>
		</xs:complexType>
	</xs:element>

Any ideas how to do formatting of date and time fields.

Thanks,
Kiran
Received on Thursday, 21 February 2002 13:35:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:26 GMT