DateTimeFormatInfo.GetDayName(DayOfWeek) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the culture-specific full name of the specified day of the week based on the culture associated with the current DateTimeFormatInfo object.
public:
System::String ^ GetDayName(DayOfWeek dayofweek);
public string GetDayName (DayOfWeek dayofweek);
member this.GetDayName : DayOfWeek -> string
Public Function GetDayName (dayofweek As DayOfWeek) As String
Parameters
Returns
The culture-specific full name of the day of the week represented by dayofweek
.
Exceptions
dayofweek
is not a valid DayOfWeek value.
Remarks
For the default invariant DateTimeFormatInfo object, this method returns a string from the GregorianCalendar object.
dayofweek |
Return value |
---|---|
Sunday | "Sunday" |
Monday | "Monday" |
Tuesday | "Tuesday" |
Wednesday | "Wednesday" |
Thursday | "Thursday" |
Friday | "Friday" |
Saturday | "Saturday" |
Applies to
See also
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.