Share via


ContentControl.DateDisplayFormat Property (Word)

Returns or sets a String that represents the format in which dates are displayed. Read/write.

Syntax

expression .DateDisplayFormat

expression An expression that returns a ContentControl object.

Remarks

The default format is the format setting specified in Microsoft 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.

Example

Dim objCC As ContentControl 
 
Set objCC = ActiveDocument.ContentControls.Add(wdContentControlDate) 
 
objCC.Title = "Review Period End Date" 
objCC.DateDisplayFormat = "MMMM d, yyyy" 
objCC.DateStorageFormat = wdContentControlDateStorageDate 
objCC.Range.Text = "January 1, 2007"

See Also

Concepts

ContentControl Object Members

ContentControl Object