formatting date and time fields

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 UTC