FullDateMode Property
Description
Tells the calendar to use DayHeaderFormat to display header information in day view.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property FullDateMode() As Boolean
Remarks
FullDateMode tells the calendar whether to use the format string stored in DayHeaderFormat to format the day view day headers. When set to False, the calendar will use the system settings to display the header information. This format only applies to views where the date is completely displayed, such as day view and work week view.
Note: Nothing will be displayed in the day view day headers if you set FullDateMode = True and leave DayHeaderFormat blank.
Need to Call on Load:
CalendarCtrl.FullDateMode = True
CalendarCtrl.DayView.DayHeaderFormat = "%a, %b %d, %y"
Valid Format Strings:
a- Abbreviated weekday nameA- Full weekday nameb- Abbreviated month nameB- Full month namec- Date and time representation appropriate for localed- Day of month as decimal number (01 – 31)H- Hour in 24-hour format (00 – 23)I- Hour in 12-hour format (01 – 12)j- Day of year as decimal number (001 – 366)m- Month as decimal number (01 – 12)M- Minute as decimal number (00 – 59)p- Current locale's A.M./P.M. indicator for 12-hour clockS- Second as decimal number (00 – 59)U- Week of year as decimal number, with Sunday as first day of week (00 – 53)w- Weekday as decimal number (0 – 6; Sunday is 0)W- Week of year as decimal number, with Monday as first day of week (00 – 53)x- Date representation for current localey- Year without century, as decimal number (00 – 99)Y- Year with century, as decimal numberz,%Z- Either the time-zone name or time zone abbreviation, depending on registry settings; no characters if time zone is unknown
You can even add some special text in any place of format like this:
CalendarCtrl.DayView.DayHeaderFormat = "Office %a, %b %d, %y Schedule"
FullDateMode must be True to use DayHeaderPeriod.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.