| |||||||||||||||||||||
DateTimeFormatInfo.GetDayName MethodSystem.Globalization Namespace DateTimeFormatInfo Class Returns the culture-specific full name of the specified day of the week based on the CultureInfo of the current thread. [ VB ] public Function GetDayName ( _ ByVal dayofweek As DayOfWeek _ ) As String [ C# ] public string GetDayName ( DayOfWeek dayofweek ); [ C++ ] public: String* GetDayName ( DayOfWeek dayofweek ); [ JScript ] function GetDayName ( dayofweek : DayOfWeek ) : String; Parameters
Return ValueThe culture-specific full name of the day of the week represented by dayofweek. Exceptions
RemarksFor the default invariant DateTimeFormatInfo, this method returns a string from the GregorianCalendar:
ExampleThe below shows how GetDayName can be used to render the name of a given day for each of the available cultures. See AlsoDateTimeFormatInfo Members CultureInfo GregorianCalendar DayNames System.DayOfWeek |
| ||||||||||||||||||||
Check out related books at Amazon
© 2000-2008 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 aspxtreme