Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Week of the month
Message
From
26/01/2004 10:49:37
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00870459
Message ID:
00870580
Views:
8
>There is a slight bug in the expression
>
>WEEK(dDate, 1, 2) - WEEK(DATE(YEAR(dDate), MONTH(dDate),1)) +1
>
>because the first WEEK() function uses Monday as the first day of the week, and the second one uses Sunday. For example, if you set dDate to Feb. 1, 2004, the above returns 0.
>
>If you change the expression to
>
>WEEK(dDate) - WEEK(DATE(YEAR(dDate), MONTH(dDate),1)) +1
>
>it is consistent.

Thanks, we'll take that in consideration.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform