General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only