holidays

How do I determine a public holiday in Sql server?

I have an application written in c# that cannot run on a public holiday or a weekend. I've looked around a bit and haven't found anywhere (official) that provide all the public holidays for the next say 50 years. If I can get these, I will simply bulk insert them into my sql server Holidays table and use that. However, I can't find ...

Holiday files for G20 countries

Hello, For proper financial FX option pricing I require the exact number of business days between two dates. These dates can be up to 10 years in the future, for 2 different countries. I therefore need to know, in advance the holidays for both of those countries between the two dates. I plan to restrict myself to G20 countries for now. ...

Function to return date of Easter for the given year

So, here's a funny little programming challenge. I was writing a quick method to determine all the market holidays for a particular year, and then I started reading about Easter and discovered just how crazy* the logic is for determining its date--the first Sunday after the Paschal Full Moon following the spring equinox! Does anybody kno...

What to learn in my summer holidays?

I am finishing my graduate and i am into a sotware company. I am a fresher and have some knowledge in Java and JEE. I can program servlets and JSP and have also developed some Swing applications. I dont have that much knowledge in web frameworks. I want to use my holidays usefully at the same time i dont want to spend a lot of time into...

Holiday Approval /tracking

Hi, Has anyone implemented a holiday workflow approval / tracking list in MOSS Sharepoint 2007? Can anyone suggests other solutions? The solution below works fine but I am specifically looking for a way to lookup manager of the user who created the holiday request list item in the workflow. I have followed this link http://www.u2u.in...

Holiday Book Recommendation

I'm after a book to read whilst on holiday. Some criteria: The book has to be relatively short. < 500 pages. I'd prefer a book that changes your thinking, rather than reams of syntax to look at. So the last two years here have been my books: Last year, The Craftsman by Richard Sennet (Changed how I viewed career development, quali...

javascript holiday validation

i finished it <script> Number.prototype.pad = function(n) { for(var r = this.toString(); r.length < n; r = 0 + r); return r; }; function getThirdMondayInJanuary(year) { var d = new Date(); if (year) d.setFullYear(year); d.setMonth(0,15,0,0,0,0); // 15th of Jan d.setDate(d.getDate()+([1,0,6,5,4,3,2][d.getDay()])); //get nex...

Database of Actual Federal Holidays / Closure

I am working on a coding problem and I need to check whether a past date was a federal holiday. It is trivial and I have already pulled the historic planned holidays but there have been many federal holidays/non-working days that have been declared by Presidential Proclamation or Executive Order. These include the day before(or) after ...

Business date/holiday handling

I've posted this question for C# but I may be working in Ruby instead. So I'm asking the same question about Ruby: I'm looking for a Ruby class/library/module that works similarly to the Perl module Date::Manip as far as business/holiday dates. Using that module in Perl, I can pass it a date and find out whether it's a business day (i...