ContentControl.DateDisplayFormat property (Word)

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


expression. DateDisplayFormat

expression An expression that returns a ContentControl object.


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.


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

ContentControl Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.