【发布时间】:2014-07-15 05:14:54
【问题描述】:
我在以下几行中遇到异常
InspectionDate = "07/15/2014"
If CType(InspectionDate, Date) > Date.Today Then
'Here comes my logic etc
'Here comes my logic etc
'Here comes my logic etc
End If
当我调试时,我看到 Date.Today = #7/15/2014#
谁能帮忙解决一下。
谢谢..
【问题讨论】:
-
改用
datetime.parse -
我只需要比较日期而不是时间。你也可以请给我的示例代码。对不起,我是asp.net的初学者
标签: asp.net vb.net visual-studio-2005