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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om