Word.ContentControlDateStorageFormat enum
Форматы хранения дат для Word. DatePickerContentControl.
Комментарии
Используется
Примеры
// 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;
}
Поля
| date = "Date" | Сохраняет дату как объект даты. |
| dateTime = "DateTime" | Сохраняет дату как объект даты и времени. |
| text = "Text" | Сохраняет дату в виде текста. |