New to Telerik UI for WinFormsStart a free 30-day trial

Date Formats

Updated over 1 year ago

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 CharacterAssociated Property/ Description
dShortDatePattern
DLongDatePattern
m, MMonthDayPattern
r, RRFC1123Pattern
y, YYearMonthPattern

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 PatternDescription
ddThe day of the month. Single-digit days will have a leading zero.
dddThe abbreviated name of the day of the week, as defined in AbbreviatedDayNames.
MThe month, from 1 through 12.
MMThe numeric month. Single-digit months will have a leading zero.
MMMThe abbreviated name of the month, as defined in AbbreviatedMonthNames.
MMMMThe full name of the month, as defined in MonthNames.
yThe year without the century. If the year without the century is less than 10, the year is displayed with no leading zero.
yyThe year without the century. If the year without the century is less than 10, the year is displayed with a leading zero.
yyyyThe year in four digits, including the century.
ggThe 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".

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

See Also

In this article
See Also
Not finding the help you need?
Contact Support