Share via


DatePickerContentControl.DateStorageFormat Property

Gets or sets the format in which the DatePickerContentControl saves dates in a custom XML part.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

Syntax

'Declaration
Property DateStorageFormat As WdContentControlDateStorageFormat
WdContentControlDateStorageFormat DateStorageFormat { get; set; }

Property Value

Type: WdContentControlDateStorageFormat
One of the WdContentControlDateStorageFormat values. The default is wdContentControlDateStorageDateTime.

Remarks

If the DatePickerContentControl is bound to a custom XML part in the document, the DateStorageFormat property specifies how the control saves dates in XML. You can persist dates as an XML schema date (xsd:date), an XML schema date/time (xsd:dateTime), or as text.

For more information about binding content controls to custom XML parts, see Content Controls and Custom XML Parts Overview.

.NET Framework Security

See Also

Reference

DatePickerContentControl Interface

Microsoft.Office.Tools.Word Namespace

Other Resources

Content Controls

Custom XML Parts Overview