DateField
Accepts a date from a calendar or a typed value.
When to use
- Collect a single day with optional date limits and calendar notes.
Examples
Choose a day
Loading the example
<k:DateField label="Delivery date" value="2026-12-08" change=".onChange"/>sap.ui.define(["sap/ui/core/mvc/Controller", "kor/ui/Toast"], (Controller, Toast) => Controller.extend("sample.DateFieldChange", {
onChange(event) {
Toast.show("Delivery date updated");
}
}));Book a workday
Only weekdays in December are selectable. The calendar marks 15 December with a note.
Loading the example
<k:DateField label="Inspection date" value="2026-12-08" min="2026-12-01" max="2026-12-31" workdays="true" marks="{/marks}" change=".onChange"/>sap.ui.define(["sap/ui/core/mvc/Controller", "kor/ui/Toast"], (Controller, Toast) => Controller.extend("sample.DateFieldChange", {
onChange(event) {
Toast.show("Inspection date updated");
}
}));API
Properties
| Name | Type | Default | Description |
|---|---|---|---|
value | any | null | Date as yyyy-MM-dd or a Date object |
label | string | Field label | |
placeholder | string | Placeholder | |
help | string | Supporting text | |
error | string | Validation message | |
min | any | Earliest selectable day | |
max | any | Latest selectable day | |
workdays | boolean | false | Whether selection excludes weekends |
marks | object | Map from dates to notes displayed in the calendar | |
required | boolean | false | Whether a value is required |
enabled | boolean | true | Whether the field can be used |
Events
| Name | Type | Description |
|---|---|---|
change | value: any | The date changed |