将列转换为date时间格式时不支持“转换”和“转换”函数(在vbscript – Excel adodb中)

我已经写了一个vbscript连接excel文件(.xlsx)作为数据库使用ADODB连接。 我想从excel文件中提取'StartDate'列中的值大于'15 / 05/2015'的logging,但是在执行adodb查询时,将引发错误为“标准expression式中的数据types不匹配”。

我尝试使用“Convert”和“Cast”function将“StartDate”列转换为date格式,但不支持。 如何编写查询来检索logging?

excel中“StartDate”列中的值看起来像“21/05/2015 0:00” ,双击该字段看起来像“21/05/2015 12:00:00 AM”

我试过的查询(所有查询都引发了数据不匹配错误):

Select * from [Student$] where StartDate >= '15/05/2015' Select * from [Student$] where StartDate >= '15/05/2015 12:00:00 AM' Select * from [Student$] where StartDate >= '15/05/2015 00:00:00.000' Select * from [Student$] where StartDate >= '15/05/2015 0:00' 

date文字的标记是# ,所以使用

 Select * from [Student$] where StartDate >= #15/5/2015# 

比照 这里