Selection.InsertDateTime(Object, Object, Object, Object, Object) Method

Definition

Inserts the current date or time, or both, either as text or as a TIME field.

public void InsertDateTime (ref object DateTimeFormat, ref object InsertAsField, ref object InsertAsFullWidth, ref object DateLanguage, ref object CalendarType);
abstract member InsertDateTime : obj * obj * obj * obj * obj -> unit
Public Sub InsertDateTime (Optional ByRef DateTimeFormat As Object, Optional ByRef InsertAsField As Object, Optional ByRef InsertAsFullWidth As Object, Optional ByRef DateLanguage As Object, Optional ByRef CalendarType As Object)

Parameters

DateTimeFormat
Object

Optional Object. The format to be used for displaying the date or time, or both. If this argument is omitted, Microsoft Word uses the short-date style from the Windows Control Panel (Regional Settings icon).

InsertAsField
Object

Optional Object. True to insert the specified information as a TIME field. The default value is True.

InsertAsFullWidth
Object

Optional Object. True to insert the specified information as double-byte digits. This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

DateLanguage
Object

Optional Object. Sets the language in which to display the date or time.Can be either of the following WdDateLanguage constants: wdDateLanguageBidi or wdDateLanguageLatin. This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

CalendarType
Object

Optional Object. Sets the calendar type to use when displaying the date or time.Can be either of the following WdCalendarTypeBi constants: wdCalendarTypeBidi or wdCalendarTypeGregorian. This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

Applies to