string str = "2012-05-30 AM 12:00:00"; string date = str.Substring(0, 10); DateTime visitDate = DateTime.Parse(date); Label2.Text = visitDate.ToString("dd-MMM-yyyy");//30-May-2012
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)