DayHeaderFormatLong Property
Description
Day header Long date format custom string.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property DayHeaderFormatLong() As String
Remarks
Long, Middle, Short, and Shortest format strings are used for different header widths in the Calendar. The Calendar control automatically selects the longest date format string that can be drawn for the currently active day header width. "Day header" refers to the caption above the day that indicates the day, month, and year for the day. The day header is displayed differently depending on the current view, and the longest possible date format will be displayed. This will update automatically if the size of the days is changed by resizing the window.
By default, the format strings use locale settings from the computer, and DayHeaderFormatXXX properties should be used to customize the default settings.
Example
Format Day Header Date String Sample (Visual Basic)
This sample illustrates how to format the day header date string.
' ddd - Short Day of the Week (Mon...Sun)
' dd - Day of the Month (1, 2, ..., 31)
' d - Day of the Month (1, 2, ..., 31)
' MMMM - Full Name of Month (January...December)
' MMM - Short Name of Month (Jan...Dec)
' MM - Month in Numeric Format (1, 2, 3,..., 12) (January = 1,..., December = 12)
' yyyy - Full Year (2005, 2006, etc...)
' yy - Abbreviated Year (05, 06, etc...)
CalendarControl.ActiveView.DayHeaderFormatLong = "ddd, dd MMMM yyyy"
CalendarControl.ActiveView.DayHeaderFormatMiddle = "ddd, dd MMM yy"
CalendarControl.ActiveView.DayHeaderFormatShort = "dd MMM "
CalendarControl.ActiveView.DayHeaderFormatShortest = "dd.MM"
CalendarControl.Populate
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.