Aqueduct.Extensions.Dates.GetSuffix C# (CSharp) Method

GetSuffix() private static method

private static GetSuffix ( int dayNumber ) : string
dayNumber int
return string
        private static string GetSuffix (int dayNumber)
        {
            switch (dayNumber)
            {
                case 31:
                case 21:
                case 1:
                    return "st";
                case 22:
                case 2:
                    return "nd";
                case 23:
                case 3:
                    return "rd";
                default:
                    return "th";
            }
        }