Word.SelectionInsertDateTimeOptions interface
Represents the options for the Selection.insertDateTime method.
Remarks
Properties
| calendar |
If provided, specifies the calendar type to use when displaying the date or time. This property may not be available to you, depending on the language support (U.S. English, for example) that you have selected or installed. |
| date |
If provided, specifies the language in which to display the date or time. This property may not be available to you, depending on the language support (U.S. English, for example) that you have selected or installed. |
| date |
If provided, specifies the format to be used for displaying the date or time, or both. If this property is omitted, Microsoft Word uses the short-date style from the Windows Control Panel (Regional Settings icon). See Date/Time data type for format symbols. |
| insert |
If provided, specifies whether to insert the specified information as a TIME field. The default value is |
| insert |
If provided, specifies whether to insert the specified information as full-width (double-byte) digits. This property may not be available to you, depending on the language support (U.S. English, for example) that you have selected or installed. |
Property Details
calendarType
If provided, specifies the calendar type to use when displaying the date or time. This property may not be available to you, depending on the language support (U.S. English, for example) that you have selected or installed.
calendarType?: Word.CalendarTypeBidirectional | "Gregorian" | "Bidirectional";
Property Value
Word.CalendarTypeBidirectional | "Gregorian" | "Bidirectional"
Remarks
dateLanguage
If provided, specifies the language in which to display the date or time. This property may not be available to you, depending on the language support (U.S. English, for example) that you have selected or installed.
dateLanguage?: Word.DateLanguage | "Bidirectional" | "Latin";
Property Value
Word.DateLanguage | "Bidirectional" | "Latin"
Remarks
dateTimeFormat
If provided, specifies the format to be used for displaying the date or time, or both. If this property is omitted, Microsoft Word uses the short-date style from the Windows Control Panel (Regional Settings icon). See Date/Time data type for format symbols.
dateTimeFormat?: string;
Property Value
string
Remarks
insertAsField
If provided, specifies whether to insert the specified information as a TIME field. The default value is true.
insertAsField?: boolean;
Property Value
boolean
Remarks
insertAsFullWidth
If provided, specifies whether to insert the specified information as full-width (double-byte) digits. This property may not be available to you, depending on the language support (U.S. English, for example) that you have selected or installed.
insertAsFullWidth?: boolean;
Property Value
boolean