DateTime.Parse throwing format exception
问题 I retrieve date and time strings from xml by parsing XElement. The date and time values are retrieved by file.Element("Date").Value and file.Element("Time").Value respectively. After I retrieve the Date value I parse it to a DateTime variable DateTime dt,ts; dt = file.Element("Date").Value; // the value is say 12/29/2012 and then this dt value is set to a datepicker value on the xaml UI datepicker.Value = dt; I also have a timepicker whose value have to be set by the Time value retrieved from