DateTimeFormatInfo.GetDayName(DayOfWeek) メソッド
定義
現在の DateTimeFormatInfo オブジェクトに関連付けられたカルチャに基づいて、指定した曜日のカルチャ固有の完全名を返します。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
パラメーター
戻り値
dayofweek
が表す曜日のカルチャ固有の完全名。The culture-specific full name of the day of the week represented by dayofweek
.
例外
注釈
既定のインバリアント DateTimeFormatInfo オブジェクトの場合、このメソッドはオブジェクトから文字列を返し GregorianCalendar ます。For the default invariant DateTimeFormatInfo object, this method returns a string from the GregorianCalendar object.
dayofweek |
戻り値Return Value |
---|---|
土曜日Sunday | "日曜日""Sunday" |
月曜日Monday | "月曜日""Monday" |
TuesdayTuesday | "火曜日""Tuesday" |
水曜日Wednesday | "水曜日""Wednesday" |
ThursdayThursday | "木曜日""Thursday" |
金曜日Friday | "金曜日""Friday" |
土曜日Saturday | "土曜日""Saturday" |