string inputDate = "03/12/2012"; DateTime dt = DateTime.MinValue; dt = DateTime.Parse(inputDate); string formatDate = String.Format("{0:MMM d, yyyy}", dt); //Set on how the format of ajax calendar has been set
1) DateTime.Parse("your date", System.Globalization.CultureInfo.InvariantCulture); 2) DateTime.ParseExact("your date", "dd-MMM-yyyy",System.Globalization.CultureInfo.InvariantCulture);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)