Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Function to determine working day

Status
Not open for further replies.

rtipton12

Programmer
Jul 25, 2003
25
US
Hello all.

I have a program that needs to be run on the 5th working day of each month. Is there a function that will tell me which working day I am on?

Any ideas are appreciated.

Thanks.
Rt
 
One is probably SUNDAYS. Then there can be public holidays.

IF DOW(DATE()) = 1 then it is SUNDAY.
my5thWorkingDay = DATE() - ;
DAY(DATE()) + 5 + IIF(DOW(DATE()-DAY(DATE())+5)<5,1,0)
+ No.ofPublic Holidays

:)

____________________________________________
ramani - (Subramanian.G) :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top