Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Week by Month
Message
 
 
To
26/12/2006 16:04:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01180294
Message ID:
01180393
Views:
17
Thanks. :)
I like such compact solutions too.

>Now THAT is cool :o)
>
>>
>>FUNCTION FourthFridayOfMonth(tnYear, tnMonth)
>>LOCAL lnDOW
>>lnDOW = DOW(DATE(tnYear, tnMonth, 01), 7)
>>RETURN DATE(tnYear, tnMonth, 7 - lnDow + 1 + 3*7)
>>
>>* or one-liner
>>FUNCTION FourthFridayOfMonth(tnYear, tnMonth)
>>RETURN DATE(tnYear, tnMonth, 7 - DOW(DATE(tnYear, tnMonth, 01), 7) + 1 + 3*7)
>>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform