DatePicker Formats
You can control the format of the Kendo UI for Vue DatePicker by using the format property.
Single Format
The DatePicker displays the value in a single format when the input is not focused. To set the format, provide a string or a DateFormatOptions object to the format property. By default, format is set to 'd'.
For more information on the supported date formats, refer to the Formatting Options section.
Formatting Options
The format property of the DatePicker supports:
- Predefined date formats
- Custom date formats
- Skeleton and field formats through a
DateFormatOptionsobject, for example{ skeleton: 'yMMMdEHm' }or{ year: 'numeric', month: 'short' }.
Predefined Date Formats
The predefined date formats are specifiers that convert a valid JavaScript Date object into a human-readable date or time based on the locale.
The following table lists the supported date format specifiers for the en locale.
| Specifier | Description | Result |
|---|---|---|
d | Short date pattern: M/d/y. | 11/6/2025 |
D | Long date pattern: EEEE, MMMM d, y. | Thursday, November 6, 2025 |
F | Full date and time pattern: EEEE, MMMM d, y h:mm:ss a. | Thursday, November 6, 2025 12:00:00 AM |
g | General date and time pattern (short time): M/d/y h:mm a. | 11/6/2025 12:00 AM |
G | General date and time pattern (long time): M/d/y h:mm:ss a. | 11/6/2025 12:00:00 AM |
m | Abbreviated month and day pattern: MMM d. | Nov 6 |
M | Wide month and day pattern: MMMM d. | November 6 |
y | Abbreviated month and year pattern: MMM y. | Nov 2025 |
Y | Wide month and year pattern: MMMM y. | November 2025 |
t | Short time pattern: h:mm a. | 2:30 PM |
T | Long time pattern: h:mm:ss a. | 2:30:45 PM |
Custom Date Formats
When the predefined date formats do not fit your requirements, create a custom date format string by using one or more custom date specifiers.
The following table lists the supported specifiers for custom date formats.
| Specifier | Description | Result |
|---|---|---|
y | Renders the year. | yy—Two-digit year (96).yyy, yyyy—Full year (2025). |
M | Renders the month. | M—Numerical month (1).MM—Zero-padded numerical month (01).MMM—Abbreviated month (Jan).MMMM—Wide month name (January).MMMMM—Narrow month name (J). |
d | Renders the day of the month. | d—Day of the month (8).dd—Zero-padded day of the month (08). |
E | Renders the day of the week. | E, EE, EEE—Abbreviated day name (Wed).EEEE—Wide day name (Wednesday).EEEEE—Narrow day name (W).EEEEEE—Short day name (We). |
a | Renders the day period. | a, aa, aaa—Short day period name (AM).aaaa—Wide day period name (AM).aaaaa—Narrow day period name (a). |
h | Renders the hour by using a 12-hour clock. | h a—Hour (1 PM).hh a—Zero-padded hour (01 PM). |
H | Renders the hour by using a 24-hour clock. | H:mm—Hour (1:00).HH:mm—Two-digit hour (13:00). |
m | Renders the minutes. | H:m—Minutes (1:1).H:mm—Two-digit minutes (1:01). |
s | Renders the seconds. | HH:mm:s—Seconds (01:01:1).HH:mm:ss—Two-digit seconds (01:01:01). |