Apr 27, 2004 #1 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
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
Apr 27, 2004 #2 ramani Programmer Mar 15, 2001 4,336 AE 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) http://winnersoft.coolfreepages.com/ Upvote 0 Downvote
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) http://winnersoft.coolfreepages.com/
Apr 27, 2004 #3 rgbean Programmer Nov 9, 2000 5,707 US You may want to check out this article - "Calculates the Number of Business Days and Excludes Holidays/Weekends" at http://support.microsoft.com/?id=259772. Rick Upvote 0 Downvote
You may want to check out this article - "Calculates the Number of Business Days and Excludes Holidays/Weekends" at http://support.microsoft.com/?id=259772. Rick
Apr 27, 2004 #4 Mike Lewis Programmer Jan 10, 2003 17,516 Scotland Rt, In addition to the good advice you have been given, if you would like some help with determining the dates of holidays, see: http://www.ml-consult.demon.co.uk/foxst-10.htm Mike Mike Lewis Edinburgh, Scotland My Visual Foxpro web site: http://www.ml-consult.demon.co.ukMy Crystal Reports web site: http://www.ml-crystal.com Upvote 0 Downvote
Rt, In addition to the good advice you have been given, if you would like some help with determining the dates of holidays, see: http://www.ml-consult.demon.co.uk/foxst-10.htm Mike Mike Lewis Edinburgh, Scotland My Visual Foxpro web site: http://www.ml-consult.demon.co.ukMy Crystal Reports web site: http://www.ml-crystal.com
Apr 27, 2004 Thread starter #5 rtipton12 Programmer Jul 25, 2003 25 US Thank you all for your help. rt Upvote 0 Downvote