Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anybody have a datediff class for foxpro
Message
From
27/08/2002 11:43:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00694033
Message ID:
00694056
Views:
15
>I looking for a function that I could call like the datediff in SQLserver
>
>lnResults=datediff(mi,datetime1,datetime2) -- Return Minutes
>lnResults=datediff(yy,datetime1,datetime2) -- Years
>lnResults=datediff(hh,datetime1,datetime2) -- Hours
>lnResults=datediff(mm,datetime1,datetime2) -- Months
>
>etc..

Can you give me an example (what is stored in each date-time value, what does datediff() return)? I don't know SQL Server.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform