<ST_SdtDateMappingType> (Date Storage Format Types)

This simple type specifies then possible types of translations which may be performed on the displayed date in a date picker structured document tag when the current contents are saved into the associated custom XML data via the <dataBinding> element (§2.5.2.6).

example:
<w:sdt>
  <w:sdtPr>
    <w:date w:fullDate="01-01-2006T06:30:00Z">
      <w:storeMappedDateAs w:val="text"/></w:date>
  </w:sdtPr>
  <w:sdtContent>
    <w:r>
      <w:t>January 1</w:t>
    </w:r>
  </w:sdtContent>
</w:sdt>

The value of the <storeMappedDateAs> element's attribute value is text, therefore the current run contents shall be sent to the mapped XML element without any translation (in this case, the value shall be January 1). ]

This simple type's contents are a restriction of the XML Schema string datatype.

The following are possible enumeration values for this type:

Enumeration Value

Description

<date> (XML Schema Date Format)

Specifies that the date specified in the parent date picker structured document tag shall be converted to the xsd:date format when stored in a mapped XML element.

<dateTime> (XML Schema DateTime Format)

Specifies that the date specified in the parent date picker structured document tag shall be converted to the xsd:dateTime format when stored in a mapped XML element.

<text> (Same As Display)

Specifies that no translation shall be performed on the displayed date when stored in a mapped XML element - the mapped contents shall be the same as the displayed contents.

Referenced By

<storeMappedDataAs@val>2.5.2.39)

The following XML Schema fragment defines the contents of this simple type:

<simpleType name="ST_SdtDateMappingType">
	<restriction base="xsd:string">
	<enumeration value="text"/>
	<enumeration value="date"/>
	<enumeration value="dateTime"/>
	</restriction>
</simpleType>