ContentControl.DateDisplayFormat Property

Definition

Gets or sets a string that specifies the format of dates that are displayed in a ContentControl that represents a date picker.

public:
 property System::String ^ DateDisplayFormat { System::String ^ get(); void set(System::String ^ value); };
public string DateDisplayFormat { get; set; }
member this.DateDisplayFormat : string with get, set
Public Property DateDisplayFormat As String

Property Value

A string that specifies the format in which the ContentControl displays dates.

Exceptions

The Type property does not have the value Microsoft.Office.Interop.Word.WdContentControlType.wdContentControlDate.

Remarks

This property can be used only if the ContentControl represents a date picker.

The default date format is the format setting specified in Microsoft Office Word, which usually depends on the locale setting of the operating system. For example, the default format of dates for the locale English (United States) is mm/dd/yyyy.

Applies to