B
Bob
In .NET, is there an easy way to determine State Holidays, such as
Thanksgiving, Memorial day, etc?
Any reference is appreciated.
Thanksgiving, Memorial day, etc?
Any reference is appreciated.
In .NET, is there an easy way to determine State Holidays, such as
Thanksgiving, Memorial day, etc?
Any reference is appreciated.
* "Bob said:In .NET, is there an easy way to determine State Holidays, such as
Thanksgiving, Memorial day, etc?
Any reference is appreciated.
Hi Herfried,
I was thinking this also, but than by thinking again, in .Net you
have regional settings, so I think this question is totaly normal. I
think it would be a nice addition to the framework from Net.
Cor
Hi OHM
This is not so different with the summertime zones.
You know Brittain had long time a different time for that than the
rest of Europe I thought now it is equal (of course with the normal 1
hour difference), I am not totaly sure for this.
Cpr
Hi OHM,
I am talking about the normal public holidays I think then for my
country about
Christian Easter (second and first day)
Christmas (second and first day)
Whitsun (second and first day)
Ascension day
Newyears day
There are only one other that is queensday but that is like newyear
always on the same day.
Cor
* "One Handed Man said:It would not make sense to hard code holidays into the locale. After all,
significant events may happen which change public holiday days per state.
* "One Handed Man [ OHM# ]"
It would not make sense to hard code holidays into the locale. After
all, significant events may happen which change public holiday days
per state.
You will have to hardcode them in the operating system for the next
1,000 years. IMO that's not a good idea...
Tom said: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
"Independence 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.
* "Cor said:You have to argue with me about that Herfried, not with OHM,
Sorry...
But you lost to much I think the last times.
* "Tom Leylan said: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 "Independence 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.