DateTimeFormatInfo.GetAbbreviatedMonthName(Int32) Метод
Определение
Возвращает сокращение указанного месяца, принятое в определенном языке и региональных параметрах, связанных с текущим объектом DateTimeFormatInfo.Returns the culture-specific abbreviated name of the specified month based on the culture associated with the current DateTimeFormatInfo object.
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, представляющее собой название извлекаемого месяца.An integer from 1 through 13 representing the name of the month to retrieve.
Возвраты
Сокращенное название месяца, принятое в определенном языке и региональных параметрах, представленное свойством month
.The culture-specific abbreviated name of the month represented by month
.
Исключения
month
меньше 1 или больше 13.month
is less than 1 or greater than 13.
Комментарии
Для инвариантного DateTimeFormatInfo объекта по умолчанию этот метод возвращает строку GregorianCalendar из объекта.For the default invariant DateTimeFormatInfo object, this method returns a string from the GregorianCalendar object.
month |
Возвращаемое значениеReturn Value |
---|---|
11 | Янв"Jan" |
22 | Февраля"Feb" |
33 | Марта"Mar" |
44 | Apr"Apr" |
55 | Мая"May" |
66 | Июля"Jun" |
77 | Июля"Jul" |
88 | Август"Aug" |
99 | Сентября"Sep" |
1010 | Октября"Oct" |
1111 | Ноября"Nov" |
1212 | Уменьшение"Dec" |
1313 | """" |
Calendarобъекты могут размещать календари за 13 месяцев.Calendar objects can accommodate calendars with 13 months. Для 12-месячных календарей пустая строка всегда возвращается в виде названия за 13 месяцев.For 12-month calendars, the empty string is always returned as the name of the 13th month.