VB日期追加、相差天数

前端之家收集整理的这篇文章主要介绍了VB日期追加、相差天数前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

dtmNyukinYmd = DateSerial(Year(dtmShimebi),Month(dtmShimebi),Day(dtmShimebi) + 7)@H_301_1@

DateSerial: yyyy/mm/dd 格式@H_301_1@


'''''''''''''''''''''''''
Dim outTime As String
Dim difTime As Integer@H_301_1@

outTime = txtYoteiYmd(0).Text & txtYoteiYmd(1).Text & txtYoteiYmd(2).Text@H_301_1@

If IsDate(Format(outTime,"####/##/##")) ThendifTime = DateDiff("d",Now,Format(outTime,"####/##/##"))'判斷相差多少天End If@H_301_1@

猜你在找的VB相关文章