Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anyone have a AfterFirstBusDayOf Month function?
Message
From
16/01/2003 12:49:46
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
16/01/2003 12:04:46
Bill Drew
Independent Consultant
Chicago, Illinois, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00742471
Message ID:
00742510
Views:
16
>If we assume the January is the only month that can be exceptional, can you give me a logical construct to know if x date after the first business day of the month.
>
>I have been using something like this. But the blood sugar must be low cause i need a little help. Getting confused with Jan.
>
>
>LPARAMETERS indate
>LOCAL lAfterFirBusDay
>DAYOFWEEK = DOW(indate-DAY(indate)+1)
>DO CASE
>CASE DAY(indate) = 1
>	lAfterFirBusDay = .f.
>CASE dayofweek = 2 AND DAY(indate) < 4
>	lAfterFirBusDay = .f.
>OTHER
>        lAfterFirBusDay = .t.
>endc
>retu lAfterFirBusDay
>
>
LPARAMETERS indate
return ( indate > date(year(indate),month(indate), ;
 iif(month(indate)=1,2,1)) ;
 and between(dow(indate,2),1,5))
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