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

Date Format Pattern

Updated over 6 months ago

The table below displays a list of the standard format characters supported by Telerik RadCalendar. The format characters are case-sensitive; for example, 'f' and 'F' represent different patterns.

Format CharacterAssociated Property/ Description
dShortDatePattern
DLongDatePattern
fFull date and time (long date and short time)
FFullDateTimePattern (long date and long time)
gGeneral (short date and short time)
GGeneral (short date and long time)
m, MMonthDayPattern
r, RRFC1123Pattern
sSortableDateTimePattern (based on ISO 8601) using local time
tShortTimePattern
TLongTimePattern
uUniversalSortableDateTimePattern using the format for universal time display
UFull date and time (long date and long time) using universal time

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 full name of the day of the week, as defined in DayNames.
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.
yyyThe 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.
hThe hour in a 12-hour clock. Single-digit hours will not have a leading zero.
hhThe hour in a 12-hour clock. Single-digit hours will have a leading zero.
HThe hour in a 24-hour clock. Single-digit hours will not have a leading zero.
HHThe hour in a 24-hour clock. Single-digit hours will have a leading zero.
mThe minute. Single-digit minutes will not have a leading zero.
mmThe minute. Single-digit minutes will have a leading zero.
sThe second. Single-digit seconds will not have a leading zero.
ssThe second. Single-digit seconds will have a leading zero.
tThe first character in the AM/PM designator defined in AMDesignator or PMDesignator, if any.
ttThe AM/PM designator defined in AMDesignator or PMDesignator, if any.

RadCalendar uses the DayNameFormat enumeration to represents the formats for the days of the week.

See Also

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