Is there an equivalent to the VB DateDiff function in B4PPC, or am I missing something?
I wrote a quick sub to handle computing # days between two days, but was wondering if someone had done this already.
I wrote a quick sub to handle computing # days between two days, but was wondering if someone had done this already.
B4X:
Sub DateDiff (units, date1, date2)
x=DateParse(date1)
y=DateParse(date2)
Select units
Case "dd"
z=24*60*60
End Select
Return (y-x) / (z * 10000000)
End Sub