ContentControl.DateDisplayFormat Property

Returns or sets the format in which dates are displayed. Read/write.

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

string DateDisplayFormat { get; set; }

Property Value

Type: System.String

The default format is the format setting specified in Microsoft Office Word on the users' system, which usually depends on the location setting in Microsoft Windows. For example, the default format of dates for English (U.S.) is "mm/dd/yyyy". Use the DateDisplayFormat property to specify a different date format.