User:Ed Poor/holiday

MLK - Third Monday in January
 * 2006 - January = 16th
 * 2007 - January = 15th
 * 2008 - January = 21st
 * 2009 - January = 19th
 * 2010 - January = 18th

Thanksgiving - 4th Thursday in November


 * 2006 - November = 23rd
 * 2007 - November = 22nd
 * 2008 - November = 27th
 * 2009 - November = 26th
 * 2010 - November = 25th

How about the first Monday of the year?
 * 2006 - January = 2nd
 * 2007 - January = 1st
 * 2008 - January = 7th
 * 2009 - January = 5th
 * 2010 - January = 4th

Now try the first Sunday:
 * 2006 - January = 1st
 * 2007 - January = 7th
 * 2008 - January = 6th
 * 2009 - January = 4th
 * 2010 - January = 3rd

Or the first Saturday:
 * 2006 - January = 7th
 * 2007 - January = 6th
 * 2008 - January = 5th
 * 2009 - January = 3rd
 * 2010 - January = 2nd

Args:
 * 1) Year
 * 2) Month
 * 3) Weekday (0 = Sunday, 1 = Monday, etc.)
 * 4) Nth (1 = first, 2 = 2nd, etc.)


 * 2010 - January = 18th