Language: C#
c# function to Get Month Number From Abbreviation
public string GetMonthNumberFromAbbreviation(string mmm) { string[] monthAbbrev = CultureInfo.CurrentCulture.DateTimeFormat.AbbreviatedMonthNames; int index = Array.IndexOf(monthAbbrev, mmm) + 1; return index.ToString("0#"); }
Tags:
Report Abuse
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search

