要判断的字符怎么样的?举例说明。
dim str as string = "2017-10-11 20:50:52"Dim d As DateIf Date.TryParse(str, d) Then msgbox(d)Else msgbox("不是日期时间")End If