Anyone have some nice source code to do this:
convert this: 7:00:12 AM to this 7.00333333333333
I'm really wanting to do Date/Time Arithmatic like this:
#11/29/00 7:00:12 AM# - #11/29/00 4:22:15 PM# = 9.37~
In VB it is very simple because of the Data Datatype, I'm
lost on how to do it in PB
This is the VB commands I'm trying to convert:
-----
Thanks,
------------------
-Greg
[This message has been edited by Gregery D Engle (edited November 30, 2000).]
convert this: 7:00:12 AM to this 7.00333333333333
I'm really wanting to do Date/Time Arithmatic like this:
#11/29/00 7:00:12 AM# - #11/29/00 4:22:15 PM# = 9.37~
In VB it is very simple because of the Data Datatype, I'm
lost on how to do it in PB
This is the VB commands I'm trying to convert:
-----
Code:
Finish$ = "11/29/00 4:22:15 PM" Start$ = "11/29/00 7:00:12 AM" Format(Str(timetodec(CDate(Format(CDate(CDate(Finish$) - CDate(Start$)), "hh:mm:ss")))), "##0.00") Function timetodec(mytime) timetodec = CDbl(mytime) * 24 End Function
------------------
-Greg
[This message has been edited by Gregery D Engle (edited November 30, 2000).]
Comment