Word.ContentControlDateStorageFormat enum

Datumsspeicherformate für Word. DatePickerContentControl.

Hinweise

API-Satz: WordApiDesktop 1.3

Verwendet von

Beispiele

// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/10-content-controls/insert-and-change-date-picker-content-control.yaml

function changeStorageFormat(datePicker: Word.DatePickerContentControl) {
    // Set the storage format to DateTime, which means the date and time will be stored in ISO format (e.g., "2024-12-31T23:59:00Z"). 
    // The time portion will be ignored when getting/setting the value of the content control, since it's a date picker.
    datePicker.dateStorageFormat = Word.ContentControlDateStorageFormat.dateTime;
}

Felder

date = "Date"

Speichert das Datum als Datumsobjekt.

dateTime = "DateTime"

Speichert das Datum als Datums-/Uhrzeitobjekt.

text = "Text"

Speichert das Datum als Text.