(Convert.ToDateTime(txt_NextPaymentDate.Text).ToString("dd/MM/yyyy"))
DateTime dt = DateTime.ParseExact(yourObject.ToString(), "MM/dd/yyyy hh:mm:ss tt", CultureInfo.InvariantCulture); string s = dt.ToString("dd/MM/yyyy");
DateTime dt = DateTime.ParseExact(txt_NextPaymentDate.Text.ToString(), "MM/dd/yyyy hh:mm:ss tt", CultureInfo.InvariantCulture); string s = dt.ToString("dd/M/yyyy");
String.Format(@"{0:dd\/MM\/yyyy}", Convert.ToDateTime(txt_NextPaymentDate.Text))
01/01/2012
String.Format(@"{0:dd\/MM\/yyyy}", Convert.ToDateTime("2012-01-01"))
Convert.ToDateTime(dateString, System.Globalization.CultureInfo.GetCultureInfo("hi-IN").DateTimeFormat).ToShortDateString();
IFormatProvider provider = new System.Globalization.CultureInfo("en-CA", true); DateTime fDate = DateTime.Parse(urTxtBoxId.Value, provider, System.Globalization.DateTimeStyles.NoCurrentDateDefault); string date=fDate.ToString("dd/MM/yyyy"))
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)