VB日期追加、相差天数
发布时间:2020-12-16 22:57:46 所属栏目:大数据 来源:网络整理
导读:dtmNyukinYmd = DateSerial(Year(dtmShimebi),Month(dtmShimebi),Day(dtmShimebi) + 7) DateSerial: yyyy/mm/dd 格式 ''''''''''''''''''''''''' Dim outTime As String Dim difTime As Integer outTime = txtYoteiYmd(0).Text txtYoteiYmd(1).Text txtYote
dtmNyukinYmd = DateSerial(Year(dtmShimebi),Month(dtmShimebi),Day(dtmShimebi) + 7) DateSerial: yyyy/mm/dd 格式
outTime = txtYoteiYmd(0).Text & txtYoteiYmd(1).Text & txtYoteiYmd(2).Text If IsDate(Format(outTime,"####/##/##")) ThendifTime = DateDiff("d",Now,Format(outTime,"####/##/##"))'判斷相差多少天End If (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |