h = uidatepicker()
h = uidatepicker(parent)
h = uidatepicker(..., propertyName, propertyValue)
| Parameter | Description |
|---|---|
| parent | parent container. |
| propertyName, propertyValue | name-value pairs. |
| Parameter | Description |
|---|---|
| h | UI component object. |
d = uidatepicker creates a date picker whose Value is a datetime scalar (NaT when empty). Properties: DisplayFormat (LDML), Limits, DisabledDates, DisabledDaysOfWeek, Editable, ValueChangedFcn.
f = uifigure('Visible', 'off', 'Name', 'Date picker', 'Position', [100 100 420 260]);
dp = uidatepicker(f, 'Position', [120 115 180 24]);
dp.Value = datetime(2026, 7, 19);
drawnow();
f = uifigure();
d = uidatepicker(f, 'Value', datetime(2026, 7, 18));
| Version | Description |
|---|---|
| 2.0.0 | initial version |