A method of calculating the number of days between two dates (VB)

xiaoxiao2021-03-06  59

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)

转载请注明原文地址:https://www.9cbs.com/read-118187.html

New Post(0)