Why doesn't this work:
System.Globalization.Cultu
reInfo culture = new System.Globalization.Cultu
reInfo("en
-GB");
textBox1.Text = "18/08/1980"
DateTime temp;
temp = Convert.ToDateTime(textBox
1.Text, culture);
textBox2.Text = temp.ToShortDateString();
"Invalid datetime format"
Regardless of the date format in the textbox it should automatically convert it to a british date.
Thanks
Start Free Trial