Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Anyone have a AfterFirstBusDayOf Month function?
Message
De
16/01/2003 13:19:08
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
16/01/2003 13:00:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00742471
Message ID:
00742531
Vues:
20
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

>This returns incorrect answer for Jan 4 and Jan 5, 2003. :)
>
>>
>>
>>
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform