VB的计算【更新中】

1、在日期的基础上设置好时间,然后跟现时的系统时间比较

代码
Dim dtToday As DateTime = Now.Date
'dtToday = dtToday.AddHours("23")
'
dtToday = dtToday.AddMinutes("38")
dtToday = dtToday + " " + CDate("15:30")

Dim dtNow As DateTime = DateTime.Now
Dim intComp As Integer = Date.Compare(dtToday, dtNow)


 

posted on 2010-05-24 22:40  至柔  阅读(196)  评论(0)    收藏  举报

导航