大家好,下面的代码在 Visual Studio 2003 中运行良好,但是在我将解决方案转换为 VS2008 之后,下面的代码给出了错误。请帮我解决问题
代码:
Dim strToDate As string
strToDate = "2013-02-06"
Dim dateFromSelect, dateToSelect, dateToSelectEnd, dateFromSelectStart As DateTime
dateToSelectEnd = strToDate + "-23:59:59.9999999"
错误
Conversion from string "2013-02-06-23:59:59.9999999" to type 'Date' is not valid