DateTimeFormatInfo.GetAbbreviatedMonthName(Int32) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
現在の 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 | "5 月" |
| 6 | "Jun" |
| 7 | "Jul" |
| 8 | "8 月" |
| 9 | "Sep" |
| 10 | "Oct" |
| 11 | "Nov" |
| 12 | "Dec" |
| 13 | "" |
Calendar オブジェクトは、13 か月のカレンダーに対応できます。 12 か月カレンダーの場合、空の文字列は常に 13 か月目の名前として返されます。