asp.net中计算两个日期之间的相差的天数的方法(vb)

Dim a As Date
Dim b As Date
a = System.DateTime.Now
b = CDate(chkExport.Text)
Dim ts As System.TimeSpan
ts = a.Subtract(b)
Dim pp As Integer
pp = CInt(ts.TotalDays)
http://sxbamboo.cnblogs.com/
1
posted @ 2005-12-31 19:41  torome  阅读(505)  评论(0编辑  收藏  举报