DateTimeFormatInfo.GetAbbreviatedMonthName(Int32) Méthode
Définition
Retourne le nom abrégé spécifique de la culture du mois spécifié en fonction de la culture associée à l’objet DateTimeFormatInfo actuel.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
Paramètres
- month
- Int32
Entier compris entre 1 et 13, représentant le nom du mois à récupérer.An integer from 1 through 13 representing the name of the month to retrieve.
Retours
Nom abrégé spécifique de la culture du mois représenté par month
.The culture-specific abbreviated name of the month represented by month
.
Exceptions
month
est inférieur à 1 ou supérieur à 13.month
is less than 1 or greater than 13.
Remarques
Pour l’objet invariant par défaut DateTimeFormatInfo , cette méthode retourne une chaîne à partir de l' GregorianCalendar objet.For the default invariant DateTimeFormatInfo object, this method returns a string from the GregorianCalendar object.
month |
Valeur de retourReturn Value |
---|---|
11 | Janvier"Jan" |
22 | 1er"Feb" |
33 | Mars"Mar" |
44 | Contesté"Apr" |
55 | Pu"May" |
66 | Jui"Jun" |
77 | Juil"Jul" |
88 | Août"Aug" |
99 | Sép"Sep" |
1010 | Personnalisation"Oct" |
1111 | Novembre"Nov" |
1212 | Decembre"Dec" |
1313 | """" |
Calendar les objets peuvent s’adapter à des calendriers de 13 mois.Calendar objects can accommodate calendars with 13 months. Pour les calendriers de 12 mois, la chaîne vide est toujours retournée comme nom du 13e mois.For 12-month calendars, the empty string is always returned as the name of the 13th month.