New to Telerik UI for WinForms? Download free 30-day trial

Date Formats

A detail explanation about the default date format strings can be found in this MSDN article.

The table below displays a list of the standard format characters supported by RadDateOnlyPicker.

Format Character Associated Property/ Description
d ShortDatePattern
D LongDatePattern
m, M MonthDayPattern
r, R RFC1123Pattern
y, Y YearMonthPattern

The table below shows a list of patterns that can be combined to create custom patterns. The patterns are case-sensitive; for example, "MM" is recognized, but "mm" is not. If the custom pattern contains white-space characters or characters enclosed in single quotation marks, the output string will also contain those characters. Characters not defined as part of a format pattern or as format characters are reproduced literally.

Format Pattern Description
dd The day of the month. Single-digit days will have a leading zero.
ddd The abbreviated name of the day of the week, as defined in AbbreviatedDayNames.
M The month, from 1 through 12.
MM The numeric month. Single-digit months will have a leading zero.
MMM The abbreviated name of the month, as defined in AbbreviatedMonthNames.
MMMM The full name of the month, as defined in MonthNames.
y The year without the century. If the year without the century is less than 10, the year is displayed with no leading zero.
yy The year without the century. If the year without the century is less than 10, the year is displayed with a leading zero.
yyyy The year in four digits, including the century.
gg The period or era. This pattern is ignored if the date to be formatted does not have an associated period or era string.

It is possible to define your own format and set the RadDateOnlyPicker.Format property to Custom. Then, specify the desired CustomFormat, e.g. "dd/MM/yyyy".

this.radDateOnlyPicker1.Format = DateTimePickerFormat.Custom;
this.radDateOnlyPicker1.CustomFormat = "yyyy/MM/dd";

Me.RadDateOnlyPicker1.Format = DateTimePickerFormat.Custom
Me.RadDateOnlyPicker1.CustomFormat = "yyyy/MM/dd"

See Also

In this article