Mono Class Library: System.Globalization.DateTimeFormatInfo Overview | Members

System.Globalization.DateTimeFormatInfo.GetAbbreviatedMonthName Method

Gets the abbreviated name of the specified month based on the culture of the current thread. [Edit]

public string GetAbbreviatedMonthName (int month)

Parameters

month
A int from 1 through 13 representing the month name to retrieve. [Edit]

Returns

A string containing the abbreviated name of the month represented by month. For cultures with 12-month calendars, the empty string is returned as the name of the 13th month. [Edit]

Exceptions

TypeReason
ArgumentOutOfRangeExceptionmonth is less than 1 or greater than 13. [Edit]

Remarks

For the default (culture-invariant) System.Globalization.DateTimeFormatInfo instance, this method returns one of the following strings:

monthReturn Value
1"Jan"
2"Feb"
3"Mar"
4"Apr"
5"May"
6"Jun"
7"Jul"
8"Aug"
9"Sep"
10"Oct"
11"Nov"
12"Dec"
13""

Note: This method supports calendars with 13 months.

[Edit]

Requirements

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0