Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How many weeks in a month
Message
 
 
To
06/11/2007 10:41:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01266837
Message ID:
01266998
Views:
13
This message has been marked as the solution to the initial question of the thread.
>Yes, I saw your thread, and thanks Sergey. I tested it, but if fails in some months. example in Abril/2007 it gives 4 weeks, when it have 5...
>

Correction
lnWeeksPerMonth = MOD(WEEK(GOMONTH(ldFirstOfMonth,1),0,2)+52 - WEEK(ldFirstOfMonth,0,2), 52)
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform