c# parse the date in DD-MMM-YYYY format

53

c# parse the date in DD/MMM/YYYY format -

CultureInfo culture = new CultureInfo("es-ES");
String myDate = "15/05/2018";
DateTime date = DateTime.Parse(myDate,culture);
Console.WriteLine(date.ToString("dd/MMM/yyyy"));

Comments

Submit
0 Comments