dateTimeFormat
Specifies how IPropertyDescription::FormatForDisplay should format the property's value as a string. This is applicable only if <displayInfo displayType="DateTime">. There should be only one dateTimeFormat element for each displayInfo element.
If there are multiple elements, the last one is used. If no dateTimeFormat element is provided, then the default attribute settings are applied to the property description.
Syntax
<!-- dateTimeFormat -->
<xs:element name="dateTimeFormat" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:attribute name="formatAs">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="General"/>
<xs:enumeration value="Month"/>
<xs:enumeration value="YearMonth"/>
<xs:enumeration value="Year"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="formatTimeAs">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="ShortTime"/>
<xs:enumeration value="LongTime"/>
<xs:enumeration value="HideTime"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="formatDateAs">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="ShortDate"/>
<xs:enumeration value="LongDate"/>
<xs:enumeration value="HideDate"/>
<xs:enumeration value="RelativeShortDate"/>
<xs:enumeration value="RelativeLongDate"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
Element Information
Parent Element | Child Elements |
---|---|
displayInfo | None |
Attributes
Attribute | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
formatAs | Public. Optional. Default is "General". The following are valid values.
|
||||||||||||
formatTimeAs | Public. Optional. Default is "ShortTime". Specifies the format in which to display time. Applies when formatAs="General". The following are valid values.
|
||||||||||||
formatDateAs | Public. Optional. Default is "ShortDate". Specifies the format in which to display the date. Applies when formatAs="General". The following are valid values.
|