New to Kendo UI for Vue? Start a free 30-day trial

DateInput Formats

Updated on Dec 2, 2026

You can control the format of the DateInput by using the format property.

Single Format

The DateInput displays the value in a single format at all times. 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.

Example
View Source
Loading ...

Formatting Options

The format property of the DateInput supports:

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.

SpecifierDescriptionResult
dShort date pattern: M/d/y.11/6/2025
DLong date pattern: EEEE, MMMM d, y.Thursday, November 6, 2025
FFull date and time pattern: EEEE, MMMM d, y h:mm:ss a.Thursday, November 6, 2025 12:00:00 AM
gGeneral date and time pattern (short time): M/d/y h:mm a.11/6/2025 12:00 AM
GGeneral date and time pattern (long time): M/d/y h:mm:ss a.11/6/2025 12:00:00 AM
mAbbreviated month and day pattern: MMM d.Nov 6
MWide month and day pattern: MMMM d.November 6
yAbbreviated month and year pattern: MMM y.Nov 2025
YWide month and year pattern: MMMM y.November 2025
tShort time pattern: h:mm a.2:30 PM
TLong 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.

SpecifierDescriptionResult
yRenders the year.yy—Two-digit year (96).
yyy, yyyy—Full year (2025).
MRenders 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).
dRenders the day of the month.d—Day of the month (8).
dd—Zero-padded day of the month (08).
ERenders 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).
aRenders the day period.a, aa, aaa—Short day period name (AM).
aaaa—Wide day period name (AM).
aaaaa—Narrow day period name (a).
hRenders the hour by using a 12-hour clock.h a—Hour (1 PM).
hh a—Zero-padded hour (01 PM).
HRenders the hour by using a 24-hour clock.H:mm—Hour (1:00).
HH:mm—Two-digit hour (13:00).
mRenders the minutes.H:m—Minutes (1:1).
H:mm—Two-digit minutes (1:01).
sRenders the seconds.HH:mm:s—Seconds (01:01:1).
HH:mm:ss—Two-digit seconds (01:01:01).