DateTime frm_datestart = DateTime.Parse(dateStart.Text);
此行引發錯誤:C#字符串爲DateTime
Exception Details: System.FormatException: String was not recognized as a valid DateTime.
當輸入的字符串是從jQuery的UI,例:
09/29/2010
09/30/2010
任何人都知道正確的格式應該是什麼?我很驚訝這是行不通的:S
可能的重複http://stackoverflow.com/questions/2188585/convert-string-to-date-in-net – 2010-09-06 10:33:34
可能重複的[Convert String to Datetime C#](http://stackoverflow.com/questions)/3616133/convert-string-to-datetime -c) – Giorgi 2010-09-06 10:40:10