Gets or sets the string to specify date format to display for the title section.
[Visual Basic]
Public Property TitleFormat As
String
[C#]
public
String TitleFormat {get; set;}
Remarks
Use this property to specify date format to display for the title section. For example, set this property to "MMMM yyyy" displays "January 2007" as month title.
You can use the following Custom DateTime Format Specifier to specify the title format.
| Specifier |
Description |
| d |
Displays the current day of the month, measured as a number between 1 and 31, inclusive. If the day is a single digit only (1-9), then it is displayed as a single digit. |
| dd |
Displays the current day of the month, measured as a number between 1 and 31, inclusive. If the day is a single digit only (1-9), it is formatted with a preceding 0 (01-09). |
| ddd |
Displays the abbreviated name of the day for the specified DateTime. If specified, AbbreviatedDayNames property is used, otherwise, default is used. |
| dddd |
Displays the full name of the day for the specified DateTime. If specified, DayNames property is used, otherwise, default is used. |
| M |
Displays the month, measured as a number between 1 and 12, inclusive. If the month is a single digit (1-9), it is displayed as a single digit. |
| MM |
Displays the month, measured as a number between 1 and 12, inclusive. If the month is a single digit (1-9), it is formatted with a preceding 0 (01-09). |
| MMM |
Displays the abbreviated name of the month for the specified DateTime. If specified, AbbreviatedMonthNames property is used, otherwise, default is used. |
| MMMM |
Displays the full name of the month for the specified DateTime. If specified, MonthNames property is used, otherwise, default is used. |
| y |
Displays the year for the specified DateTime as a maximum two-digit number. The first two digits of the year are omitted. If the year is a single digit (1-9), it is displayed as a single digit. |
| yy |
Displays the year for the specified DateTime as a maximum two-digit number. The first two digits of the year are omitted. If the year is a single digit (1-9), it is formatted with a preceding 0 (01-09). |
| yyyy |
Displays the year for the specified DateTime, including the century. If the year is less than four digits in length, then preceding zeros are appended as necessary to make the displayed year four digits long. |
See Also
Calendar Class | EO.Web Namespace