我有這樣的代碼:字符串/日期轉換問題(asp.net VB)
Dim birthdaystring As String = MonthBirth.SelectedValue.ToString & "/" & DayBirth.SelectedValue.ToString & "/" & YearBirth.SelectedValue.ToString
Dim birthday As DateTime = Convert.ToDateTime(birthdaystring)
將會產生錯誤(字符串未被識別爲有效的DateTime)
字符串爲「01/1963分之31「 。
任何援助將不勝感激。
謝謝。