473,761 Members | 2,440 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

State holidays

Bob
In .NET, is there an easy way to determine State Holidays, such as
Thanksgiving, Memorial day, etc?
Any reference is appreciated.

Nov 20 '05
54 2160
* "One Handed Man [ OHM# ]" <OneHandedMan@& REMOVE&TO%MAIL% MEBTInternet.co m> scripsit:
Thats what I said, read me post again !


Sorry, should be a reply to Cor.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #21
* "Tom Leylan" <ge*@iamtiredof spam.com> scripsit:
Concepts like "holidays" are virtually meaningless. Given the knowledge
that a particular day in a particular country is a "holiday" what can you
rely on as being a fact that you can use? Meaning, are the banks closed?
Government offices? Do people working get 1.5 times their regular pay rate?
It only means it is a holiday and that in itself means nothing.
It would be nice for a calendar application, but, for example in
Austria, there are school holidays, but many schools have their holidays
at different time. It would be nearly impossible to create a list of
holidays which apply to a certain person.
If you think it is important then it would probably need to be set up as a
service. You could query an online source that given a date and a country
it could return whether it was a recognized holiday or not. You would have
to calculate the holidays that change days and you would have to know what
year the holiday became effective so that if somebody posts a date in the
past you could check if it was "Independen ce Day" in the United States (for
instance) in 1601, prior to it being a country.
ACK. A, for example, web service, would be a good idea. This will help
keeping the list "up to date".
Given you probably won't have all the information for "every" country you
would have to be able to return "True", "False" and "I don't know" and the
don't know answer will be the reply to the majority of queries. Let's try
one for instance... "Tibet, Jan 16, 1804" so tell me if it was a holiday or
not.


;-)))

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #22
* "Cor" <no*@non.com> scripsit:
I started this when I first thought this question from the OP is a
ridiculous question because there are so many regions in the world.

But because .Net has region settings where in is every comma, every winter
and summertime, every type of datestring,etc etc, than this I think is only
a little but good extention.


Regions <> countries. Holidays are defined in countries or even parts
of them. I think that's the main problem.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #23
* "Cor" <no*@non.com> scripsit:
You have to argue with me about that Herfried, not with OHM,
Sorry...
But you lost to much I think the last times.


Sorry again, I don't understand.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #24
I read the thread...

The problem is (and I don't know what Windows does to know what state one is
in or what state one might be referring to) but even Daylight Savings does
not apply to the state of Hawaii and Arizona (except for the Navajo Indian
Reservation) nor does it apply in Guam, Puerto Rico, the Virgin Islands or
part of the state of Indiana.

On certain years it was extended (1974 and 1975) and the rules have been
changed since the rule was enacted. The same things are true in other
countries. The fact is that nobody knows "for certain" at any point in time
in the past for a given country whether or not the country (or some part of
it) did or didn't abide by the rule.

It's a problem but it is an unfortunate fact. Windows doesn't know what
time it is in Arizona... you have to rely on the system clock or accept an
offset from the official world time. The local time and certainly holidays
aren't standardized.

"Cor" <no*@non.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Hi Tom,

I started this when I first thought this question from the OP is a
ridiculous question because there are so many regions in the world.

But because .Net has region settings where in is every comma, every winter
and summertime, every type of datestring,etc etc, than this I think is only a little but good extention.

Cor

ps National, Public holidays

Nov 20 '05 #25
Oh no doubt... lots of classes would be useful. Your wrote and I simply
agreed that it cannot be made part of the .Net framework... though clearly
some sort of template could be supplied. Perhaps an ICalendar interface if
there isn't one already.

There are banks that are open on Saturday and some are open on Sunday. Any
good help desk system should check how many people are on staff rather than
relying on "Saturday is closed" as a rule. If it determined that zero
operators were scheduled it would be able to handle situations where some
people work on Saturday. And it would be better able to calculate during
the weekdays when the number of operators rises and falls.
"One Handed Man [ OHM# ]" <OneHandedMan@& REMOVE&TO%MAIL% MEBTInternet.co m>
wrote in message news:%2******** **********@TK2M SFTNGP09.phx.gb l...
Even so, a generic Holiday class would be usefull where you could load
custom dates in and have an IsHoliday member function. Lots of applications use this kind of information. For example, a help desk system might use if
for calculating reponse time and removing weekends and bank holidays etc.

OHM
Tom Leylan wrote:
Cor,

Concepts like "holidays" are virtually meaningless. Given the
knowledge that a particular day in a particular country is a
"holiday" what can you rely on as being a fact that you can use?
Meaning, are the banks closed? Government offices? Do people working
get 1.5 times their regular pay rate? It only means it is a holiday
and that in itself means nothing.

If you think it is important then it would probably need to be set up
as a service. You could query an online source that given a date and
a country it could return whether it was a recognized holiday or not.
You would have to calculate the holidays that change days and you
would have to know what year the holiday became effective so that if
somebody posts a date in the past you could check if it was
"Independen ce Day" in the United States (for instance) in 1601, prior
to it being a country.

Given you probably won't have all the information for "every" country
you would have to be able to return "True", "False" and "I don't
know" and the don't know answer will be the reply to the majority of
queries. Let's try one for instance... "Tibet, Jan 16, 1804" so
tell me if it was a holiday or not.


Regards - OHM# On**********@BT Internet.com

Nov 20 '05 #26
It might be a good idea if people looked these things up before they travel
too far down the road :-)

Even Thanksgiving is only the 4th Thursday in November "today in the US" it
was not always that day and it isn't that day in Canada. I'm not arguing
about it BTW I'm simply pointing out that it's usefulness as "informatio n"
depends upon what the app is expected to do.
"Marc Miller" <mm*****@epix.n et> wrote in message
news:u6******** *****@tk2msftng p13.phx.gbl...
Bob,

Thanksgiving is always the 4th Thursday in November, Labor Day is always the 1st Monday in September and Memorial Day is always the last Monday in May.

For any others, search past year's calendars for the patterns.

M. Miller
"Bob" <bo******@yahoo .com> wrote in message
news:OH******** ******@TK2MSFTN GP12.phx.gbl...
In .NET, is there an easy way to determine State Holidays, such as
Thanksgiving, Memorial day, etc?
Any reference is appreciated.


Nov 20 '05 #27
Cor
Hi Tom,

Here in Europe we dont have that long our summertime, but it is in the
Windows system and nobody here has a problem with it. Only the guys at
Microsoft because the cannot make a good table on the web.

Cor

Even Thanksgiving is only the 4th Thursday in November "today in the US" it was not always that day and it isn't that day in Canada. I'm not arguing
about it BTW I'm simply pointing out that it's usefulness as "informatio n"
depends upon what the app is expected to do.

Nov 20 '05 #28
Cor
Hi Herfried,

I am talking about public holidays, like Easter, Chrismass, and all that not
school holidays or other.

Cor
Nov 20 '05 #29
Cor
Herfried,

I thought Austria had is own local setting or is that a part of Bohemia?

Cor
Nov 20 '05 #30

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5116
by: Nils Magnus Englund | last post by:
Hi! I have a large table in SQL Server 2000 with a datetime-column 'dt'. I want to select all rows from that table, excluding days which fall on holidays or weekends. What is the best way to accomplish this? I considered creating a new table called "holidays" and then selecting all rows (sort of "where not in (select * from holidays)") , but I was looking for a better solution since that implies that I have to populate the "holidays"...
8
1866
by: Bob | last post by:
In .NET, is there an easy way to determine State Holidays, such as Thanksgiving, Memorial day, etc? Any reference is appreciated.
34
7479
by: MLH | last post by:
http://www.opm.gov/Fedhol/ http://www.opm.gov/Fedhol/2008.asp Federal law (5 U.S.C. 6103) establishes the following public holidays for Federal employees. Please note that most Federal employees work on a Monday through Friday schedule. For these employees, when a holiday falls on a nonworkday -- Saturday or Sunday -- the holiday usually is observed on Monday (if the holiday falls on Sunday) or Friday (if the holiday falls on Saturday)....
0
1283
by: dawson | last post by:
Hello, we have a travel agent client with two websites, they are pretty much identical apart from the template (master pages) and a few copy edits here and there, they are however on seperate domains. The search functionality, login, register and rest of the code base is identical. TravelAgentWebsite1 is for worldwide holidays, and TravelAgentWebsite2 only UK holidays. Now, if a client was to perform a search on TravelAgentWebsite1,...
0
9336
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9948
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9902
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8770
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7327
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6603
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3866
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2738
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.