how to get month name from month number in c#

how to get month name from month number in c#:

step-1:
   use this name space
   using System.Globalization;

step-2:
  use the bleow code
  string month=CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(1)

Here 1 is for january month.You can give numbers(1 to 12) as per your need.

Comments

Popular posts from this blog

Upload Single/Multiple file by using the REST API and jQuery SharePoint 2013

A type named 'SP.Data. could not be resolved by the model error

Add content type to SharePoint List/Library using REST API