c# get month name form Month month code example Example: c# get month number string sMonth = DateTime.Now.ToString("MM");