Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DateDiff
Message
From
22/02/2001 06:38:50
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
22/02/2001 05:21:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00478312
Message ID:
00478329
Views:
25
>I need to write a DateDiff function for differences in Months, the closest I can come to is:
>
>INT((tdEndDate-tdStartDate)/30)
>
>Which is a bit assumptious, I understand that there is a long way of doing this by checking which 2 months you are comparing and altering the figures accordingly, but I was wondering if there was a straight forward way of doing it.
>
>Thanks
>Kev

Kevin,
Could you elaborate it more. gomonth() sounds to be an option.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform