Skip to content

Latest commit

 

History

History
53 lines (31 loc) · 1.42 KB

Word.ContentControl.DateStorageFormat.md

File metadata and controls

53 lines (31 loc) · 1.42 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
ContentControl.DateStorageFormat property (Word)
vbawd10.chm266534932
vbawd10.chm266534932
Word.ContentControl.DateStorageFormat
c69d3f01-725e-8b64-147b-ca8a146b7419
06/08/2017
medium

ContentControl.DateStorageFormat property (Word)

Returns or sets a WdContentControlDateStorageFormat that represents the format for storage and retrieval of dates when a date content control is bound to the XML data store of the active document. Read/write.

Syntax

expression. DateStorageFormat

expression An expression that returns a ContentControl object.

Remarks

The DateStorageFormat property allows you to store dates in date format, date/time format, or text format.

Example

The following example adds a date content control to the active document and specifies the date, the date display format, and the date storage 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

[!includeSupport and feedback]