Return to Snippet

Revision: 11732
at February 17, 2009 03:05 by leonbda


Initial Code
GetMonthName(i, false)

private static string GetMonthName(int month, bool abbrev)
    {
        DateTime date = new DateTime(1900, month, 1);
        if (abbrev) return date.ToString("MMM");
            return date.ToString("MMMM");
    }

Initial URL


Initial Description
Get month name for given integer.

Initial Title
Get mont name from int

Initial Tags


Initial Language
C#