System.Globalization.DateTimeFormatInfo.GetAbbreviatedMonthName C# (CSharp) Méthode

GetAbbreviatedMonthName() public méthode

Returns the culture-specific abbreviated name of the specified month based on the culture associated with the current DateTimeFormatInfo object.
public GetAbbreviatedMonthName ( int month ) : string
month int An integer from 1 through 13 representing the name of the month to retrieve.
Résultat string
        public extern string GetAbbreviatedMonthName(int month);

Usage Example

        public static String DatetimeAMesCorto(DateTime fecha)
        {
            System.Globalization.DateTimeFormatInfo mfi = Thread.CurrentThread.CurrentUICulture.DateTimeFormat;
            string Mes = mfi.GetAbbreviatedMonthName(fecha.Month).Replace(".", "");

            return(Mes);
        }
All Usage Examples Of System.Globalization.DateTimeFormatInfo::GetAbbreviatedMonthName