Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculating time cards
Message
From
28/11/2008 16:02:30
Randy Hooper
Ranco Business Software
Tampa, Florida, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01364561
Message ID:
01364566
Views:
19
>>clock in at 9:30am and clock out at 11:00am this calulate to 1.70, looking for 1.30, is this not what the form is for to asks questions.
>>
>
>Convert them to Date/Time (if they aren't already), then subtract them and convert back into hours:
>
>ex.
>
>
>ltStart = DATETIME(2008, 11, 28, 9, 30, 00)
>ltEnd = DATETIME(2008, 11, 28, 11, 0, 00)
>?(ltEnd - ltStart) / 60 / 60
>
cool, thanks
Foxpro is a sweet puppy

'cept it barks every now and then =)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform