Click here to Skip to main content
15,885,842 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends

May you please help me to write a function that gets a public holiday.

Regards

Mkhensi
Posted
Comments
CHill60 7-Jun-13 5:42am    
What have you tried so far and how do you plan to identify a "public holiday"?

1 solution

It will depend on which country you live in. You profile says USA, but since you just signed up today, you might not have that set correctly yet.

Anyway, here is a link to a CodeProject article in VB.NET that handles this very issue for holidays in the US.
Holidays and business date calculations and translations[^]

The functionality in the article does not handle calculation of Easter holidays, so if you need that, you are going to have to do a little searching.

Soren Madsen
 
Share this answer
 
Comments
SoMad 7-Jun-13 6:22am    
I should mention that I am not super impressed with the article I linked to, but I chose it because it was published just last week. Furthermore, there are links to other articles within the article text and in the Comment section.
In other words, you should start by looking at an article like that and then look at similar articles to decide how you want to proceed.

Soren Madsen

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900