System.Web.UI.WebControls Namespace Calendar Class
Sets or retrieves the format for the names of days.
[ VB ]
Public Property DayNameFormat As DayNameFormat
[ C# ]
public DayNameFormat DayNameFormat {get; set;}
[ C++ ]
public: __property DayNameFormat get_DayNameFormat ( );
public: __property void set_DayNameFormat ( DayNameFormat );
[ JScript ]
public function get DayNameFormat ( ) : DayNameFormat;
public function set DayNameFormat ( DayNameFormat );
One of the DayNameFormat values. The default is Short.
When programming, this property is set using the DayNameFormat enumeration.
Day names are derived form the server's local settings.
The following example demonstrates how to set the DayNameFormat property to display the day names in the short format.
<asp:Calendar id = "myCalendar" runat = "server"
DayNameFormat = "Short" />
Calendar Members