R
rsanan
How do I convert a datetime from en-GB to en-US format
here is my code - (not working for the clients outside of US)
/*******************CODE*****************/
System.Globalization.CultureInfo myCI = new
System.Globalization.CultureInfo("en-US", true);
xwriter.WriteElementString(""xxx",
System.DateTime.Parse(Convert.ToDateTime("16/2/2006").ToShortDateString(),
myCI).ToString());
/*******************************************/
Error = System.FormatException: String was not recognized as a valid
DateTime.
here is my code - (not working for the clients outside of US)
/*******************CODE*****************/
System.Globalization.CultureInfo myCI = new
System.Globalization.CultureInfo("en-US", true);
xwriter.WriteElementString(""xxx",
System.DateTime.Parse(Convert.ToDateTime("16/2/2006").ToShortDateString(),
myCI).ToString());
/*******************************************/
Error = System.FormatException: String was not recognized as a valid
DateTime.