-
WSEnvoyPV
AskWoody LoungerYes, Pat, you’d have to change source code for each region OR add source for each region that you were going to distribute to and take region as input from some source. I chose the method I did because it was an “in-house” federal gov’t database. This way, the users and I never have to concern ourselves about updating any “holiday” table.
The specific application it’s used for is to schedule operations from month to month. Some ot these jobs are daily, or every Monday or the first working day of every month, and occasionally some are manually assigned – you get the idea. If a user selects a job to be run and accidentally clicks on a holiday date, they are prompted that they’ve chosen a holiday and that the date has been changed for them to “xdate”.
-
WSEnvoyPV
AskWoody LoungerIn the code from the other posts, just change the Select Case Month(datCurrDate) to cover your country/region. For example, February would be changed like this for New Zealand:
Case 2
If Day(datCurrDate) = 6 Then ‘ For Waitangi Day
datChkDate = datCurrDate
End If
If datChkDate = datCurrDate Then booHol = True -
WSEnvoyPV
AskWoody LoungerRefer to post 127952. The email address in the attachment to that post has changed, but the code’s still valid and could be modified for NZ instead of USA. Also, here’s an algorithm I found for Easter that could be made a part of the code in the referenced post.
Algorithm from anonymous correspondent from New York to Nature in 1876
In the text below, / represents an integer division neglecting the remainder, while % is division keeping only the remainder (MOD). So 30/7=4 ,
and 30%7=2 .
a=year MOD 19
b=year/100
c=year MOD 100
d=b/4
e=b%4
f=(b+8)/25
g=(b-f+1)/3
h=(19*a+b-d-g+15)MOD 30
i=c/4
k=c%4
l=(32+2*e+2*i-h-k)%7
m=(a+11*h+22*l)/451
Easter Month =(h+l-7*m+114)/31 [3=March, 4=April]
p=(h+l-7*m+114)MOD 31
Easter Date=p+1 (date in Easter Month) -
WSEnvoyPV
AskWoody LoungerThere was a lot of traffic on this topic in Woody’s Access Watch a month or three ago, so check there, too.
I was challenged a couple years ago to come up with a more permanent solution than a table of holidays, particularly because of Outlook date snafus, and came up with the attached code. A case statement out of the attached actually made it into a Readers Respond 🙂
-
WSEnvoyPV
AskWoody LoungerThanks for the reply. The print goes all the way to the right edge. It truly is a stupid design that’s about 20 years old, but it’s a federal form and we’re stuck with it. If nobody can come with something on this, I may have to try Unix.
-
WSEnvoyPV
AskWoody LoungerStill looking for that automatic fix. Thanks anyway, Barry
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Logitech MK850 Keyboard issues
by
Rush2112
1 hour, 40 minutes ago -
We live in a simulation
by
Alex5723
9 hours, 10 minutes ago -
Netplwiz not working
by
RetiredGeek
8 hours, 32 minutes ago -
Windows 11 24H2 is broadly available
by
Alex5723
21 hours, 38 minutes ago -
Microsoft is killing Authenticator
by
Alex5723
5 hours, 8 minutes ago -
Downloads folder location
by
CWBillow
1 day, 4 hours ago -
Remove a User from Login screen
by
CWBillow
7 hours, 16 minutes ago -
TikTok fined €530 million for sending European user data to China
by
Nibbled To Death By Ducks
19 hours, 10 minutes ago -
Microsoft Speech Recognition Service Error Code 1002
by
stanhutchings
19 hours, 13 minutes ago -
Is it a bug or is it expected?
by
Susan Bradley
23 hours, 51 minutes ago -
Image for Windows TBwinRE image not enough space on target location
by
bobolink
18 hours, 21 minutes ago -
Start menu jump lists for some apps might not work as expected on Windows 10
by
Susan Bradley
1 day, 18 hours ago -
Malicious Go Modules disk-wiping malware
by
Alex5723
1 day, 8 hours ago -
Multiple Partitions?
by
CWBillow
1 day, 8 hours ago -
World Passkey Day 2025
by
Alex5723
2 days, 1 hour ago -
Add serial device in Windows 11
by
Theodore Dawson
2 days, 17 hours ago -
Windows 11 users reportedly losing data due forced BitLocker encryption
by
Alex5723
18 hours, 3 minutes ago -
Cached credentials is not a new bug
by
Susan Bradley
2 days, 21 hours ago -
Win11 24H4 Slow!
by
Bob Bible
2 days, 21 hours ago -
Microsoft hiking XBox prices starting today due to Trump’s tariffs
by
Alex5723
2 days, 19 hours ago -
Asus adds “movement sensor” to their Graphics cards
by
n0ads
3 days ago -
‘Minority Report’ coming to NYC
by
Alex5723
2 days, 20 hours ago -
Apple notifies new victims of spyware attacks across the world
by
Alex5723
3 days, 8 hours ago -
Tracking content block list GONE in Firefox 138
by
Bob99
3 days, 8 hours ago -
How do I migrate Password Managers
by
Rush2112
2 days, 16 hours ago -
Orb : how fast is my Internet connection
by
Alex5723
2 days, 17 hours ago -
Solid color background slows Windows 7 login
by
Alex5723
3 days, 20 hours ago -
Windows 11, version 24H2 might not download via Windows Server Updates Services
by
Alex5723
3 days, 19 hours ago -
Security fixes for Firefox
by
Susan Bradley
20 hours, 13 minutes ago -
Notice on termination of services of LG Mobile Phone Software Updates
by
Alex5723
4 days, 7 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.