# Range Date Time Picker

> A Range Date Time Picker widget to allow users to enter multiple date-time ranges via keyboard or by picking from an interactive calendar with time pickers

Range Date Time Picker widgets are [Input Fields](https://golemui.com/dx/widgets-reference/input-fields/overview.md) that let the user enter one or more date-time ranges in a single compact field: they can type the ranges using their keyboard or open a drop-down calendar popover, a multi-month day grid plus a start and end time picker, to select them visually. Clicking a pill or pressing Enter navigates the calendar to that range's month; with [`allowEdit`](#editing-pills) it also selects the pill so the range can be edited in place. For an always-visible inline variant, use the [Range Date Time Calendar](https://golemui.com/dx/widgets-reference/input-fields/range-datetime-calendar.md); for a typed-only field with no popover, use the [Range Date Time Input](https://golemui.com/dx/widgets-reference/input-fields/range-datetime-input.md); for a single (non-range) value, use the [Date Time Picker](https://golemui.com/dx/widgets-reference/input-fields/datetimepicker.md).

The widget emits an array of `{ start, end }` objects, each a local ISO date-time string (`YYYY-MM-DDTHH:mm:ss`).


```ts title="range-datetime-picker.ts"

export default [
  gui.inputs.rangeDateTimePicker('bookingSlots', {
    label: 'Booking Slots',
  }),
];
```

_Live demo on the docs page. Form definition: [range-datetime-picker.ts](https://golemui.com/template/widgets-dx/range-datetime-picker/range-datetime-picker.ts)._

## Props

Use these `props` to customize your Range Date Time Picker widget. It accepts the full set of typed-input props (for the trigger) and calendar props (for the popover and its time pickers), all listed below.

| prop                        | type                  | description                                                                                                                                  |
| --------------------------- | --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `allowCustomTime`           | boolean               | Allow typing a time in each picker; when `false` (default) times come only from the grid                                                     |
| `allowEdit`                 | boolean               | Enables selecting and editing pills in place. See [Editing Pills](#editing-pills). Defaults to `false`                                       |
| `cancelEditLabel`           | string \| Localizable | Tooltip of the pill's cancel icon while editing. Defaults to `Cancel`                                                                        |
| `confirmEditLabel`          | string \| Localizable | Tooltip of the pill's confirm icon while editing. Defaults to `Confirm`                                                                      |
| `dayAriaLabel`              | string                | Aria label for the day segment input. Defaults to `Day`                                                                                      |
| `dayCountAriaLabel`         | string \| Localizable | Aria label template for the per-day count badge; `{count}` token substituted. Defaults to `{count} ranges`                                   |
| `dayPeriodAriaLabel`        | string                | Aria label for the AM/PM segment input. Defaults to `AM/PM`                                                                                  |
| `disabledDayCountAriaLabel` | string \| Localizable | Aria label template for the per-day disabled-spans badge; `{count}` token substituted. Defaults to `{count} disabled ranges`                 |
| `disabledRangeMessage`      | string \| Localizable | Error shown when a selected range overlaps a disabled span                                                                                   |
| `disabledRanges`            | array                 | Array of `{ start, end }` date-time spans that render disabled (a whole day is `00:00:00`–`23:59:59`)                                        |
| `editAriaLabel`             | string \| Localizable | Edit hint joined into a selectable pill's `aria-description`; `{label}` is replaced with the range's label. Defaults to `Edit range {label}` |
| `editCancelledMessage`      | string \| Localizable | Screen-reader announcement when an edit is cancelled. Defaults to `Edit cancelled.`                                                          |
| `editCommittedMessage`      | string \| Localizable | Screen-reader announcement when an edit commits; `{label}` carries the resulting range. Defaults to `Range updated to {label}.`              |
| `editLabel`                 | string \| Localizable | Tooltip of the pill's edit icon. Defaults to `Edit`                                                                                          |
| `editStartedMessage`        | string \| Localizable | Screen-reader announcement when an edit starts; `{label}` carries the range. Defaults to `Editing range {label}.`                            |
| `endDateTimeAriaLabel`      | string                | Aria label for the end date-time field group                                                                                                 |
| `endTimeLabel`              | string \| Localizable | Visible heading on the end time picker. Defaults to `End time`                                                                               |
| `hint`                      | string                | A description to display below the input                                                                                                     |
| `hourAriaLabel`             | string                | Aria label for the hour segment input. Defaults to `Hour`                                                                                    |
| `hourFormat`                | `'12' \| '24'`        | Force 12- or 24-hour entry. Defaults to the user's locale                                                                                    |
| `icon`                      | string                | A css class to display an icon inside the input                                                                                              |
| `incompleteMessage`         | string \| Localizable | Error shown when focus leaves the widget with a partially filled date-time behind; the value goes to `null` so validators report it          |
| `invalidDateMessage`        | string \| Localizable | Error shown when a typed date does not exist                                                                                                 |
| `maxDateTime`               | string                | Latest allowed instant (ISO date-time, inclusive)                                                                                            |
| `maxDateTimeMessage`        | string \| Localizable | Error shown when a typed date-time is after `maxDateTime`                                                                                    |
| `minDateTime`               | string                | Earliest allowed instant (ISO date-time, inclusive)                                                                                          |
| `minDateTimeMessage`        | string \| Localizable | Error shown when a typed date-time is before `minDateTime`                                                                                   |
| `minuteAriaLabel`           | string                | Aria label for the minute segment input. Defaults to `Minute`                                                                                |
| `minuteStep`                | number                | Granularity of the time pickers and minute segment                                                                                           |
| `monthAriaLabel`            | string                | Aria label for the month segment input. Defaults to `Month`                                                                                  |
| `nextMonthAriaLabel`        | string                | Accessible label for the next month navigation button                                                                                        |
| `nextMonthIcon`             | string                | Custom CSS class for the next month button                                                                                                   |
| `noAvailableTimesMessage`   | string \| Localizable | Message shown when the bounds yield no selectable times. Defaults to `No available times`                                                    |
| `numberOfMonths`            | number                | Number of months to display simultaneously in the popover                                                                                    |
| `prevMonthAriaLabel`        | string                | Accessible label for the previous month navigation button                                                                                    |
| `prevMonthIcon`             | string                | Custom CSS class for the previous month button                                                                                               |
| `removePillAriaLabel`       | string                | Aria label for the remove pill action                                                                                                        |
| `selectYearAriaLabel`       | string                | Aria label for the year-selector toggle button in the calendar header; the current year is appended. Defaults to `Select year`               |
| `separator`                 | string                | The separator between start and end fields. Defaults to `-`                                                                                  |
| `startDateTimeAriaLabel`    | string                | Aria label for the start date-time field group                                                                                               |
| `startTimeLabel`            | string \| Localizable | Visible heading on the start time picker. Defaults to `Start time`                                                                           |
| `toggleAriaLabel`           | string                | Aria label for the popup toggle button. Defaults to `Show calendar`                                                                          |
| `yearAriaLabel`             | string                | Aria label for the year segment input. Defaults to `Year`                                                                                    |
| `yearGridAriaLabel`         | string                | Aria label for the year-selection grid. Defaults to `Year selection`                                                                         |

### Hint

<Aside>A `label` is required for the `hint` to be displayed.</Aside>

Use the property `hint` to add descriptive text.


```ts title="range-datetime-picker.ts"

export default [
  gui.inputs.rangeDateTimePicker('bookingSlots', {
    hint: 'Pick one or more date-time ranges from the calendar.',
    minuteStep: 30,
    label: 'Booking Slots',
  }),
];
```

_Live demo on the docs page. Form definition: [range-datetime-picker-hint.ts](https://golemui.com/template/widgets-dx/range-datetime-picker/range-datetime-picker-hint.ts)._

### Time Labels

Use `startTimeLabel` and `endTimeLabel` to rename the two time pickers inside the popover (for example `Check-in` and `Check-out`). Both are localizable and default to `Start time` and `End time`.


```ts title="range-datetime-picker.ts"

export default [
  gui.inputs.rangeDateTimePicker('stays', {
    hint: 'Open the calendar to see the renamed time pickers.',
    minuteStep: 30,
    startTimeLabel: 'Check-in',
    endTimeLabel: 'Check-out',
    label: 'Stays',
    defaultValue: [
      {
        start: '2026-02-16T14:00:00',
        end: '2026-02-18T09:30:00',
      },
    ],
  }),
];
```

_Live demo on the docs page. Form definition: [range-datetime-picker-time-labels.ts](https://golemui.com/template/widgets-dx/range-datetime-picker/range-datetime-picker-time-labels.ts)._

### Min and Max Date-Times

Use `minDateTime` and `maxDateTime` (ISO date-times, both inclusive) to bound the selectable instant span. Out-of-range days and times render disabled in the popover, and a typed value that violates a boundary raises an input error; customize (and localize) the messages with `minDateTimeMessage` and `maxDateTimeMessage`.


```ts title="range-datetime-picker.ts"

export default [
  gui.inputs.rangeDateTimePicker('bookingSlots', {
    hint: 'Book between 2026-02-01 09:00 and 2026-07-31 18:00',
    minuteStep: 30,
    minDateTime: '2026-02-01T09:00:00',
    maxDateTime: '2026-07-31T18:00:00',
    minDateTimeMessage: 'No bookings before February 2026',
    maxDateTimeMessage: 'No bookings after July 2026',
    label: 'Booking Slots',
    defaultValue: [
      {
        start: '2026-02-13T09:00:00',
        end: '2026-02-13T11:00:00',
      },
    ],
  }),
];
```

_Live demo on the docs page. Form definition: [range-datetime-picker-bounds.ts](https://golemui.com/template/widgets-dx/range-datetime-picker/range-datetime-picker-bounds.ts)._

### Disabled Ranges

Use `disabledRanges` to mark instant spans as unavailable: a whole day is `00:00:00`–`23:59:59`, and a partial-day span disables only the affected time slots on that day. A selected range that overlaps a disabled span raises an input error whose message you can customize (and localize) with `disabledRangeMessage`.


```ts title="range-datetime-picker.ts"

export default [
  gui.inputs.rangeDateTimePicker('bookingSlots', {
    hint: 'Feb 9-10 are closed, plus a maintenance window on 2026-02-17',
    minuteStep: 30,
    disabledRanges: [
      {
        start: '2026-02-09T00:00:00',
        end: '2026-02-10T23:59:59',
      },
      {
        start: '2026-02-17T13:00:00',
        end: '2026-02-17T14:00:00',
      },
    ],
    disabledRangeMessage: 'This slot overlaps an unavailable period',
    label: 'Booking Slots',
    defaultValue: [
      {
        start: '2026-02-13T09:00:00',
        end: '2026-02-13T11:00:00',
      },
    ],
  }),
];
```

_Live demo on the docs page. Form definition: [range-datetime-picker-disabled.ts](https://golemui.com/template/widgets-dx/range-datetime-picker/range-datetime-picker-disabled.ts)._

### Allow Custom Time

Use the property `allowCustomTime` to let the user type any time directly in each time picker, in addition to picking from the grid. When `false` (the default) times come only from the grid.


```ts title="range-datetime-picker.ts"

export default [
  gui.inputs.rangeDateTimePicker('bookingSlots', {
    hint: 'Type an exact time in each picker.',
    minuteStep: 30,
    allowCustomTime: true,
    label: 'Booking Slots',
    defaultValue: [
      {
        start: '2026-02-13T09:00:00',
        end: '2026-02-13T11:00:00',
      },
    ],
  }),
];
```

_Live demo on the docs page. Form definition: [range-datetime-picker-customtime.ts](https://golemui.com/template/widgets-dx/range-datetime-picker/range-datetime-picker-customtime.ts)._

### Number of Months

Use the property `numberOfMonths` to display multiple months side-by-side in the popover. The time pickers render below the first panel.


```ts title="range-datetime-picker.ts"

export default [
  gui.inputs.rangeDateTimePicker('bookingSlots', {
    hint: 'Two months are shown side-by-side in the popover.',
    minuteStep: 30,
    numberOfMonths: 2,
    label: 'Booking Slots',
    defaultValue: [
      {
        start: '2026-02-16T14:00:00',
        end: '2026-02-18T09:30:00',
      },
    ],
  }),
];
```

_Live demo on the docs page. Form definition: [range-datetime-picker-months.ts](https://golemui.com/template/widgets-dx/range-datetime-picker/range-datetime-picker-months.ts)._

### Day Count Labels

A day carrying more than one range shows a count badge, and a day with disabled slots shows a disabled badge. Use `dayCountAriaLabel` and `disabledDayCountAriaLabel` to customize (and localize) their screen-reader labels; the `{count}` token is replaced with the number of ranges.


```ts title="range-datetime-picker.ts"

export default [
  gui.inputs.rangeDateTimePicker('bookingSlots', {
    hint: 'Hover a day badge to read its ranges.',
    minuteStep: 30,
    disabledRanges: [
      {
        start: '2026-02-17T13:00:00',
        end: '2026-02-17T14:00:00',
      },
    ],
    dayCountAriaLabel: 'Number of slots taken: {count}',
    disabledDayCountAriaLabel: 'Disabled slots: {count}',
    label: 'Booking Slots',
    defaultValue: [
      {
        start: '2026-02-13T09:00:00',
        end: '2026-02-13T11:00:00',
      },
      {
        start: '2026-02-13T13:00:00',
        end: '2026-02-13T15:00:00',
      },
    ],
  }),
];
```

_Live demo on the docs page. Form definition: [range-datetime-picker-daycounts.ts](https://golemui.com/template/widgets-dx/range-datetime-picker/range-datetime-picker-daycounts.ts)._

### Editing Pills

Use the property `allowEdit` to let the user change a committed range in place instead of removing it and typing it again. Click a pill, or arrow onto it, to select it; the selection reveals a pencil icon next to the remove icon. The pencil, or `F2` or `E` on the focused pill, loads the range back into the segments and moves focus to the first start segment. While you type, the pill's label previews the new value. `Enter` in the segments or the pill's check icon confirms the replacement; `Escape` or the cross icon cancels it and keeps the pill selected. A confirmed range that overlaps a neighbour merges into it, and confirming an unchanged range is treated as a cancel. Selecting is not a commit: the form value only changes on confirm.

Selecting a pill navigates the popover to that range's month and dims the other committed ranges. During an edit, day and time picks in the panel reshape the range without committing; `Enter` in the segments or the pill's check icon confirms the replacement. `Escape` closes an open popover first, then cancels the edit.

On touch devices, where the pills collapse into the count bubble, the pencil is always visible inside the pills dropdown, and the pills and their icons grow to the `pointer: coarse` sizes listed under [CSS Variables](#css-variables).

The tooltips and screen-reader announcements of the flow are localizable through `editLabel`, `confirmEditLabel`, `cancelEditLabel`, `editAriaLabel`, `editStartedMessage`, `editCommittedMessage` and `editCancelledMessage`. A `{label}` token in `editAriaLabel`, `editStartedMessage` and `editCommittedMessage` is replaced with the range's display label by the widget itself, single braces on purpose, so the form's `{{ }}` localization interpolation never consumes it.


```ts title="range-datetime-picker.ts"

export default [
  gui.inputs.rangeDateTimePicker('editableAppointments', {
    allowEdit: true,
    minuteStep: 30,
    label: 'Appointments',
    defaultValue: [
      {
        start: '2026-09-07T09:00:00',
        end: '2026-09-07T11:00:00',
      },
      {
        start: '2026-09-08T14:00:00',
        end: '2026-09-09T09:30:00',
      },
    ],
  }),
];
```

_Live demo on the docs page. Form definition: [range-datetime-picker-edit.ts](https://golemui.com/template/widgets-dx/range-datetime-picker/range-datetime-picker-edit.ts)._

## Styling

Range Date Time Pickers can be styled as explained in the [Styling Guide](https://golemui.com/dx/styling/overview.md). The typed field, the popover calendar, and the embedded time pickers each have their own styling variables.

### CSS Variables

Following you will find a list with the CSS Variables specific to the Range Date Time Picker popover positioning and toggle, plus those inherited from its sub-widgets.

| CSS Variable                  | Description                                                                                |
| ----------------------------- | ------------------------------------------------------------------------------------------ |
| `--gui-radius-md`             | Interactive calendar container, day button, pill, and time list radius                     |
| `--gui-bg-default`            | Interactive calendar and time list background color                                        |
| `--gui-border-default`        | Interactive calendar border color, hover day border, pills wrapper border                  |
| `--gui-space-3`               | Internal padding within the calendar view and day buttons                                  |
| `--gui-text-default`          | Input text color, day buttons text color, and time slot text color                         |
| `--gui-bg-disabled`           | Disabled day and disabled time slot background color                                       |
| `--gui-intent-primary`        | Selected day, pill, and selected time slot background color                                |
| `--gui-intent-primary-hover`  | Today's day border color and time slot hover background                                    |
| `--gui-intent-error`          | Border and focus shadow color when invalid                                                 |
| `--gui-border-focus`          | Border color when a pill or input is focused                                               |
| `--gui-shadow-focus`          | Box shadow when a pill or input is focused                                                 |
| `--gui-time-list-height`      | Total height of each time picker's slot list viewport                                      |
| `--gui-time-list-item-height` | Fixed height of each time slot row                                                         |
| `--gui-time-list-columns`     | Number of columns in the time slot grid                                                    |
| `--gui-pill-height`           | Pill height. `24px`, `32px` under `pointer: coarse`                                        |
| `--gui-pill-action-size`      | Size of the edit, confirm, cancel and remove icons. `16px`, `24px` under `pointer: coarse` |
| `--gui-pill-action-hit`       | Hit area of each pill icon. `24px`, `32px` under `pointer: coarse`                         |
| `--gui-pill-font-size`        | Pill label font size. `var(--gui-font-xs)`, `var(--gui-font-sm)` under `pointer: coarse`   |

### Anatomy

This is the anatomy of the Range Date Time Picker Widget in case you want to use your CSS styles.


```html title="range-datetime-picker-anatomy.html"
<gui-range-date-time-picker-input class="gui-range-date-time-picker gui-field">
  <gui-range-date-time-picker class="gui-field">
    <span class="gui-label" id="fieldUid_label">
      <span class="gui-label__text">Booking Slots</span>
    </span>
    <div class="gui-widget">
      <gui-range-date-time id="fieldUid_date" class="gui-field">
        <div class="gui-widget">
          <div
            role="group"
            class="gui-widget-input gui-parts-ring gui-range-date-time-input"
            aria-labelledby="fieldUid_label"
          >
            <gui-pills class="gui-range-date-time-input__pills">
              <div class="gui-pills__strip-wrapper gui-pills--end-shadow">
                <div
                  class="gui-pills__strip"
                  role="toolbar"
                  tabindex="-1"
                  aria-label="Selected date-time ranges"
                >
                  <span class="gui-sentinel gui-sentinel__start"></span>
                  <button
                    type="button"
                    class="gui-pills__pill gui-pills__pill--clickable"
                    tabindex="-1"
                    aria-label="10/05/2026, 09:00 AM - 10/09/2026, 11:00 AM"
                    aria-description="Remove date-time"
                  >
                    <span class="gui-pills__pill-text">
                      10/05/2026, 09:00 AM - 10/09/2026, 11:00 AM
                    </span>
                    <span class="gui-pills__pill-remove" aria-hidden="true">
                      <svg
                        xmlns="http://www.w3.org/2000/svg"
                        width="16"
                        height="16"
                        viewBox="0 0 256 256"
                        fill="currentColor"
                        aria-hidden="true"
                      >
                        <path d="…"></path>
                      </svg>
                    </span>
                  </button>
                  <span class="gui-sentinel gui-sentinel__end"></span>
                </div>
              </div>
              <div class="gui-pills__compact">
                <button
                  type="button"
                  aria-haspopup="true"
                  class="gui-pills__count"
                  aria-label="1 date-time range"
                  aria-expanded="false"
                  aria-controls="fieldUid_pills_dropdown"
                >
                  1
                </button>
              </div>
              <!-- Compact mode only: the selected pills in a floating list, opened from the count button -->
              <div
                class="gui-pills__dropdown"
                popover="manual"
                role="toolbar"
                aria-orientation="vertical"
                id="fieldUid_pills_dropdown"
                aria-label="Selected date-time ranges"
              >
                <div class="gui-pills__dropdown-list">
                  <button
                    type="button"
                    class="gui-pills__pill gui-pills__pill--clickable"
                    tabindex="-1"
                    aria-label="10/05/2026, 09:00 AM - 10/09/2026, 11:00 AM"
                    aria-description="Remove date-time"
                  >
                    <span class="gui-pills__pill-text">10/05/2026, 09:00 AM - 10/09/2026, 11:00 AM</span>
                    <span class="gui-pills__pill-remove" aria-hidden="true">
                      <svg
                        xmlns="http://www.w3.org/2000/svg"
                        width="16"
                        height="16"
                        viewBox="0 0 256 256"
                        fill="currentColor"
                        aria-hidden="true"
                      >
                        <path d="…"></path>
                      </svg>
                    </span>
                  </button>
                </div>
              </div>
            </gui-pills>
            <div class="gui-range-date-time-input__inputs">
              <div
                class="gui-parts gui-range-date-time-input__field"
                role="group"
                aria-label="Start date-time"
              >
                <div class="gui-parts__touch-target gui-range-date-time-input__touch-target">
                  <input
                    type="text"
                    inputmode="numeric"
                    role="spinbutton"
                    autocomplete="off"
                    class="gui-parts__part gui-range-date-time-input__part"
                    data-type="month"
                    data-group="start"
                    maxlength="2"
                    placeholder="mm"
                    tabindex="0"
                    aria-label="Month"
                    aria-valuemin="1"
                    aria-valuemax="12"
                  />
                  <div
                    class="gui-parts__visual-underline gui-range-date-time-input__visual-underline"
                  ></div>
                </div>
                <span class="gui-range-date-time-input__separator">/</span>
                <div class="gui-parts__touch-target gui-range-date-time-input__touch-target">
                  <input
                    type="text"
                    inputmode="numeric"
                    role="spinbutton"
                    autocomplete="off"
                    class="gui-parts__part gui-range-date-time-input__part"
                    data-type="day"
                    data-group="start"
                    maxlength="2"
                    placeholder="dd"
                    tabindex="-1"
                    aria-label="Day"
                    aria-valuemin="1"
                    aria-valuemax="31"
                  />
                  <div
                    class="gui-parts__visual-underline gui-range-date-time-input__visual-underline"
                  ></div>
                </div>
                <span class="gui-range-date-time-input__separator">/</span>
                <div class="gui-parts__touch-target gui-range-date-time-input__touch-target">
                  <input
                    type="text"
                    inputmode="numeric"
                    role="spinbutton"
                    autocomplete="off"
                    class="gui-parts__part gui-range-date-time-input__part gui-parts__year gui-range-date-time-input__year"
                    data-type="year"
                    data-group="start"
                    maxlength="4"
                    placeholder="yyyy"
                    tabindex="-1"
                    aria-label="Year"
                    aria-valuemin="1900"
                    aria-valuemax="9999"
                  />
                  <div
                    class="gui-parts__visual-underline gui-range-date-time-input__visual-underline"
                  ></div>
                </div>
                <span class="gui-range-date-time-input__separator">,</span>
                <div
                  dir="ltr"
                  class="gui-parts__time-cluster gui-range-date-time-input__time-cluster"
                >
                  <div class="gui-parts__touch-target gui-range-date-time-input__touch-target">
                    <input
                      type="text"
                      inputmode="numeric"
                      role="spinbutton"
                      autocomplete="off"
                      class="gui-parts__part gui-range-date-time-input__part"
                      data-type="hour"
                      data-group="start"
                      maxlength="2"
                      placeholder="hh"
                      tabindex="-1"
                      aria-label="Hour"
                      aria-valuemin="1"
                      aria-valuemax="12"
                    />
                    <div
                      class="gui-parts__visual-underline gui-range-date-time-input__visual-underline"
                    ></div>
                  </div>
                  <span class="gui-range-date-time-input__separator">:</span>
                  <div class="gui-parts__touch-target gui-range-date-time-input__touch-target">
                    <input
                      type="text"
                      inputmode="numeric"
                      role="spinbutton"
                      autocomplete="off"
                      class="gui-parts__part gui-range-date-time-input__part"
                      data-type="minute"
                      data-group="start"
                      maxlength="2"
                      placeholder="mm"
                      tabindex="-1"
                      aria-label="Minute"
                      aria-valuemin="0"
                      aria-valuemax="59"
                    />
                    <div
                      class="gui-parts__visual-underline gui-range-date-time-input__visual-underline"
                    ></div>
                  </div>
                </div>
                <span class="gui-range-date-time-input__separator"></span>
                <div class="gui-parts__touch-target gui-range-date-time-input__touch-target">
                  <button
                    type="button"
                    class="gui-parts__part gui-parts__dayperiod gui-range-date-time-input__part gui-range-date-time-input__dayperiod"
                    data-type="dayPeriod"
                    data-group="start"
                    tabindex="-1"
                    aria-label="AM/PM"
                  >
                    AM
                  </button>
                  <div
                    class="gui-parts__visual-underline gui-range-date-time-input__visual-underline"
                  ></div>
                </div>
              </div>
              <span class="gui-range-date-time-input__separator" aria-hidden="true">-</span>
              <div
                class="gui-parts gui-range-date-time-input__field"
                role="group"
                aria-label="End date-time"
              >
                <!-- Same segments as the Start date-time group, with data-group="end" -->
              </div>
            </div>
          </div>
        </div>
      </gui-range-date-time>
      <button
        type="button"
        class="gui-range-date-time-picker__arrow"
        aria-haspopup="dialog"
        aria-label="Show calendar"
        aria-expanded="true"
        aria-controls="fieldUid_popup"
      >
        <span class="gui-caret" aria-hidden="true"></span>
      </button>
      <div class="gui-picker__panel" popover="manual">
        <gui-range-date-time-calendar
          role="dialog"
          id="fieldUid_popup"
          aria-labelledby="fieldUid_label"
          class="gui-field"
        >
          <div class="gui-widget">
            <div class="gui-calendar-input" role="group" id="fieldUid_calendar">
              <div class="gui-visually-hidden" aria-live="polite">October 2026</div>
              <div class="gui-calendar__container">
                <button
                  type="button"
                  class="gui-button gui-calendar__month-button gui-calendar__month-button--prev"
                  aria-label="Previous month"
                >
                  <span class="gui-caret gui-caret--left" aria-hidden="true"></span>
                </button>
                <div class="gui-calendar__months-grid">
                  <div class="gui-calendar__panel">
                    <header class="gui-calendar__header">
                      <h2>
                        <span class="gui-calendar__month-name">October</span>
                        <button
                          type="button"
                          class="gui-calendar__year-selector"
                          aria-expanded="false"
                          aria-label="Select year, 2026"
                        >
                          <span class="gui-calendar__year-value">2026</span>
                          <span class="gui-calendar__year-arrow" aria-hidden="true">
                            <span class="gui-caret" aria-hidden="true"></span>
                          </span>
                        </button>
                      </h2>
                    </header>
                    <div class="gui-range-date-time-calendar__time-row">
                      <div class="gui-range-date-time-calendar__time-column">
                        <gui-time-picker
                          class="gui-time-picker gui-field gui-range-date-time-calendar__start"
                        >
                          <span class="gui-label" id="fieldUid-start-time_label">
                            <span class="gui-label__text">Start time</span>
                          </span>
                          <div class="gui-widget">
                            <gui-time id="fieldUid-start-time_time" class="gui-field" readonly>
                              <div class="gui-widget">
                                <div
                                  role="group"
                                  id="fieldUid-start-time"
                                  class="gui-widget-input gui-parts gui-parts-ring gui-time-input"
                                  aria-labelledby="fieldUid-start-time_label"
                                >
                                  <div
                                    dir="ltr"
                                    class="gui-parts__time-cluster gui-time-input__time-cluster"
                                  >
                                    <div
                                      class="gui-parts__touch-target gui-time-input__touch-target"
                                    >
                                      <input
                                        type="text"
                                        inputmode="numeric"
                                        role="spinbutton"
                                        autocomplete="off"
                                        class="gui-parts__part gui-time-input__part"
                                        data-type="hour"
                                        maxlength="2"
                                        placeholder="hh"
                                        tabindex="0"
                                        aria-label="Hour"
                                        aria-valuemin="1"
                                        aria-valuemax="12"
                                        readonly
                                        aria-readonly="true"
                                      />
                                      <div
                                        class="gui-parts__visual-underline gui-time-input__visual-underline"
                                      ></div>
                                    </div>
                                    <span class="gui-time-input__separator">:</span>
                                    <div
                                      class="gui-parts__touch-target gui-time-input__touch-target"
                                    >
                                      <input
                                        type="text"
                                        inputmode="numeric"
                                        role="spinbutton"
                                        autocomplete="off"
                                        class="gui-parts__part gui-time-input__part"
                                        data-type="minute"
                                        maxlength="2"
                                        placeholder="mm"
                                        tabindex="-1"
                                        aria-label="Minute"
                                        aria-valuemin="0"
                                        aria-valuemax="59"
                                        readonly
                                        aria-readonly="true"
                                      />
                                      <div
                                        class="gui-parts__visual-underline gui-time-input__visual-underline"
                                      ></div>
                                    </div>
                                  </div>
                                  <span class="gui-time-input__separator"></span>
                                  <div class="gui-parts__touch-target gui-time-input__touch-target">
                                    <button
                                      type="button"
                                      class="gui-parts__part gui-parts__dayperiod gui-time-input__part gui-time-input__dayperiod"
                                      data-type="dayPeriod"
                                      tabindex="-1"
                                      aria-label="AM/PM"
                                    >
                                      AM
                                    </button>
                                    <div
                                      class="gui-parts__visual-underline gui-time-input__visual-underline"
                                    ></div>
                                  </div>
                                </div>
                              </div>
                            </gui-time>
                            <button
                              type="button"
                              class="gui-time-picker__arrow"
                              aria-haspopup="dialog"
                              aria-label="Show time list"
                              aria-expanded="false"
                              aria-controls="fieldUid-start-time_popup"
                            >
                              <span class="gui-caret" aria-hidden="true"></span>
                            </button>
                            <!-- Time list: hidden until its arrow opens it, then shown in place -->
                            <div class="gui-picker__panel" hidden>
                              <gui-time-list
                                role="dialog"
                                id="fieldUid-start-time_popup"
                                aria-labelledby="fieldUid-start-time_label"
                                hidden
                              >
                                <div
                                  class="gui-time-list__viewport gui-time-list__viewport--grid"
                                  role="grid"
                                  aria-label="Start time"
                                  style="
                                    --gui-time-list-height: 300px;
                                    --gui-time-list-item-height: 40px;
                                    --gui-time-list-columns: 4;
                                  "
                                >
                                  <div role="row" class="gui-time-list__row">
                                    <button
                                      type="button"
                                      role="gridcell"
                                      class="gui-time-list__option"
                                      tabindex="0"
                                      data-value="00:00:00"
                                      aria-selected="false"
                                      aria-disabled="false"
                                    >
                                      12:00 AM
                                    </button>
                                    <button
                                      type="button"
                                      role="gridcell"
                                      class="gui-time-list__option"
                                      tabindex="-1"
                                      data-value="00:30:00"
                                      aria-selected="false"
                                      aria-disabled="false"
                                    >
                                      12:30 AM
                                    </button>
                                    <!-- More time slots in the row -->
                                  </div>
                                  <!-- More rows of time slots -->
                                </div>
                              </gui-time-list>
                            </div>
                          </div>
                        </gui-time-picker>
                      </div>
                      <div class="gui-range-date-time-calendar__time-column">
                        <gui-time-picker
                          class="gui-time-picker gui-field gui-range-date-time-calendar__end"
                        >
                          <!-- Same structure as the Start time picker, with the End time label and fieldUid-end-time ids -->
                        </gui-time-picker>
                      </div>
                    </div>
                    <div class="gui-calendar__days-grid" role="grid" aria-label="October 2026">
                      <div role="row" class="gui-calendar__rows">
                        <span class="gui-calendar__weekday" role="columnheader">S</span>
                        <span class="gui-calendar__weekday" role="columnheader">M</span>
                        <!-- One header per weekday -->
                      </div>
                      <!-- Earlier weeks, one row per week -->
                      <div role="row" class="gui-calendar__rows">
                        <button
                          type="button"
                          role="gridcell"
                          class="gui-calendar__day-button"
                          tabindex="-1"
                          aria-label="Sunday, October 4, 2026"
                          data-date="2026-10-04"
                          aria-selected="false"
                        >
                          4
                        </button>
                        <button
                          type="button"
                          role="gridcell"
                          class="gui-calendar__day-button range-start"
                          tabindex="0"
                          aria-label="Monday, October 5, 2026"
                          data-date="2026-10-05"
                          aria-selected="true"
                        >
                          5
                        </button>
                        <button
                          type="button"
                          role="gridcell"
                          class="gui-calendar__day-button in-range"
                          tabindex="-1"
                          aria-label="Tuesday, October 6, 2026"
                          data-date="2026-10-06"
                          aria-selected="true"
                        >
                          6
                        </button>
                        <!-- More days inside the range -->
                        <button
                          type="button"
                          role="gridcell"
                          class="gui-calendar__day-button range-end"
                          tabindex="-1"
                          aria-label="Friday, October 9, 2026"
                          data-date="2026-10-09"
                          aria-selected="true"
                        >
                          9
                        </button>
                        <!-- More days, one per date of the week -->
                      </div>
                      <!-- More weeks, one row per week -->
                    </div>
                  </div>
                </div>
                <button
                  type="button"
                  class="gui-button gui-calendar__month-button gui-calendar__month-button--next"
                  aria-label="Next month"
                >
                  <span class="gui-caret gui-caret--right" aria-hidden="true"></span>
                </button>
              </div>
            </div>
          </div>
        </gui-range-date-time-calendar>
      </div>
    </div>
    <div class="gui-validator gui-validator--empty" id="fieldUid_errors" role="alert"></div>
  </gui-range-date-time-picker>
</gui-range-date-time-picker-input>
```
