String.Format("{0:M/d/yyyy}", dt);
DateTime nu = DateTime.Now; String myFormattedDate = nu.ToString("MM/dd/yyyy");
string date2; string date1 ="1/9/2010"; string [] x1; x1=date1.Split('/'); date2 = x1[1] + "/" + x1[0] + "/" + x1[2]; Response.Write(date2); // 9/1/2010
System.DataTime.ToString
CultureInfo
IFormatProvider
System.Threading.Thread.CurrentCulture
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)