asp.net.ph

Calendar.DayNameFormat Property

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 );

Property Value

One of the DayNameFormat values. The default is Short.

Exceptions


Exception Type Condition
ArgumentException Occurs when the specified value is not one of the DayNameFormat values.

Remarks

When programming, this property is set using the DayNameFormat enumeration.

Day names are derived form the server's local settings.

Example

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" />
See Also

Calendar Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph