DateTimeFormatInfo.GetAbbreviatedMonthName(Int32) メソッド

定義

現在の DateTimeFormatInfo オブジェクトに関連付けられたカルチャに基づいて、指定した月のカルチャ固有の省略名を返します。

public:
 System::String ^ GetAbbreviatedMonthName(int month);
public string GetAbbreviatedMonthName (int month);
member this.GetAbbreviatedMonthName : int -> string
Public Function GetAbbreviatedMonthName (month As Integer) As String

パラメーター

month
Int32

取得する月の名前を表す 1 ~ 13 の整数。

戻り値

month が表す月のカルチャ固有の省略名。

例外

month が 1 より小さいか、または 13 を超えています。

注釈

既定の不変 DateTimeFormatInfo オブジェクトの場合、このメソッドは オブジェクトから文字列を GregorianCalendar 返します。

month 戻り値
1 "Jan"
2 "Feb"
3 "Mar"
4 "Apr"
5 "May"
6 "Jun"
7 "Jul"
8 "8 月"
9 "Sep"
10 "Oct"
11 "Nov"
12 "Dec"
13 ""

Calendar オブジェクトは、13 か月のカレンダーに対応できます。 12 か月カレンダーの場合、空の文字列は常に 13 か月目の名前として返されます。

適用対象

こちらもご覧ください