Date Time Picker
Form-associated date-and-time field with a calendar and time popup, min/max/step constraints and an IANA time zone.
c2-date-time-picker picks a date and a time of day in one field. Its value, min and max are wall-clock strings in the shape of <input type="datetime-local"> (YYYY-MM-DDTHH:mm, with :ss when step is below 60 seconds), read in time-zone: an IANA name such as Europe/Paris, or empty for the browser’s own zone. Typing in the field stays native. The calendar button (or Alt+ArrowDown in the field) opens a popup with a month calendar, a c2-time-input for the time and, when time-zones lists several zones, a time-zone choice. Changing the zone keeps the wall clock, so a meeting at 09:00 in Tokyo stays 09:00 in Tokyo whoever picks it.
Import
import '@c2n/components/date-time-picker'Usage
Listen for input while the value changes and change when it is committed; each pick in the popup fires both, and so does choosing another zone. valueAsDate is the instant the value names in its zone (setting it writes that instant’s wall clock), valueAsISOString the same with the zone’s offset (2026-10-14T09:00:00+09:00), and resolvedTimeZone the zone in use. A time that a daylight-saving jump skips resolves forward, as Temporal does. The form submits the wall clock under name; add time-zone-name to submit the zone as well. min and max disable the days outside them and clamp the time picked in the popup, step (in seconds, counted from min) sets the time grid, and week-start chooses Monday or Sunday.