I'm developing a function that takes a given date, adds 7 days to it, then checks what the resulting day is; if it is a Sat, Sun, or Public Holiday, then it adds one, and checks again. It'll keep checking until the result is a Mon to Fri that isn't a Public Holiday.
The Sat/Sun check is easy enough, and the Public Holidays I will put into my code. What I was wondering is if anyone has done this sort of thing and how did you go about it? I have started coding it, but am interested in other's methods.
I have also thought about accessing an Outlook file folder with Holidays (although I am guessing what PH details are in there depend on what Microsoft put in). I may end up creating a data file with Public Holidays in it that the user can edit; my function will then check that file to see if a resulting date is a PH or not.
I just went into Outlook to check the Holidays and it isn't showing any of them (Australian) despite them being switched on..... something else I'll have to work on.
The Sat/Sun check is easy enough, and the Public Holidays I will put into my code. What I was wondering is if anyone has done this sort of thing and how did you go about it? I have started coding it, but am interested in other's methods.
I have also thought about accessing an Outlook file folder with Holidays (although I am guessing what PH details are in there depend on what Microsoft put in). I may end up creating a data file with Public Holidays in it that the user can edit; my function will then check that file to see if a resulting date is a PH or not.
I just went into Outlook to check the Holidays and it isn't showing any of them (Australian) despite them being switched on..... something else I'll have to work on.