Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anyone have a AfterFirstBusDayOf Month function?
Message
From
16/01/2003 13:23:05
 
 
To
16/01/2003 13:19:08
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00742471
Message ID:
00742534
Views:
17
This function returns incorrect answer for January of this year...Jan. 2nd was the first business day.

I like my long function :)

>Right.
>
>? Indate > FirstBizDay(Indate)
>
>FUNCTION FirstBizDay
>LPARAMETERS ldDate
>LOCAL FDOM
>FDOM = ldDate - Day(ldDate) + 1
>RETURN FDOM + IIF(DOW(FDOM,2)>5, 8-DOW(FDOM,2), 0)
>
>Cetin
>
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform