DateFormat Property

WebControls UltimateCalendar

UltimateCalendar Class Library

UltimateDatePicker.DateFormat Property

Gets or sets the date format.

[Visual Basic] Public Property DateFormat As String
[C#]
public string DateFormat {get; set;}

Property Value

Date format. The default value is MM/dd/yy.

Remarks

Use this property to get or set the date format based on the following rules:

dThe day of the month. Single-digit days will not have a leading zero.
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 DateTimeFormatInfo.AbbreviatedDayNames.
ddddThe full name of the day of the week, as defined in DateTimeFormatInfo.DayNames.
MThe numeric month. Single-digit months will not have a leading zero.
MMThe numeric month. Single-digit months will have a leading zero.
MMMThe abbreviated name of the month, as defined in DateTimeFormatInfo.AbbreviatedMonthNames.
MMMMThe full name of the month, as defined in DateTimeFormatInfo.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.

See Also

UltimateDatePicker Class | Karamasoft.WebControls.UltimateCalendar Namespace