Gets or sets the format of the text displayed for each week in the week header.
Namespace: MindFusion.Scheduling
Assembly: MindFusion.Scheduling
C# Copy Code |
---|
public string WeekHeaderFormat { get; set; } |
Visual Basic Copy Code |
---|
Public Property WeekHeaderFormat As String |
A string specifying the display format. Assign null to this property to use the corresponding value from the current theme.
The string controls how to format the text displayed by week headers in a Month view. The value of this property can contain the following formatting specifiers among ordinary text in any number and order:
Specifier | Description |
---|---|
%s[{format}] | The date of the first day in the corresponding week, formatted according to the standard date formatting string, specified by {format}. The brackets '{' and '}' should not be included. |
%e[{format}] | The date of the last day in the corresponding week, formatted according to the standard date formatting string, specified by {format}. The brackets '{' and '}' should not be included. |
%w | The number of the corresponding week relative to the current year. |
For example, the formatting string "(%w) %s[d ]-%e[d ], %s[MMM]" for the week 13.08-19.08 will yield the following result: "(33) 13-19, Aug". Pay attention to the space following 'd' in the format specification '[d ]'. If the space is missing, the format will be interpreted as a standard short date formatting.