Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return Next Non-Weekend Date
Message
From
22/05/2003 14:29:49
 
 
To
22/05/2003 08:08:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00791392
Message ID:
00791810
Views:
26
For the one liner people ...

if ldDate is today and we are looking for the next non-weekend date after today then

ldNewDate=ldDate+1+iif(dow(ldDate+1)=7,2,iif(dowldDate+1)=1,1,0))

i.e. Newdate is tomorrow + 2 more days if tomorrow is Saturday or + one more day if tomorrow is Sunday.

See you at DevCon

Steve
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform