I have string say \"12/1/2011\" in English US culture my current machine culture is English Uk which is \"dd/mm/yyyy\" format. How to convert the 12/1/2011 to 1/12/2011. I h
This works for me:
string myTime = DateTime.Parse("12/1/2011") .ToString(CultureInfo.GetCultureInfo("en-GB").DateTimeFormat.ShortDatePattern);