description | ms.assetid | title | ms.topic | ms.date |
---|---|---|---|---|
Specifies how IPropertyDescription::FormatForDisplay should format the property's value as a string. This is applicable only if <displayInfo displayType=&\#0034;DateTime&\#0034;>. |
c290fb2e-ef5b-4dea-ba42-7c9e273a89dc |
dateTimeFormat |
article |
05/31/2018 |
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.
<!-- 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>
Parent Element | Child Elements |
---|---|
displayInfo | None |
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.
|