Jump to content

FatherCarbon

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

FatherCarbon's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hey everyone, I've been scratching my head over this for a couple days. I simply want to have a function to return 4 specific holidays (Memorial Day, July 4th, Thanksgiving, and Christmas). Of course the 4th and Christmas are no problem. I was looking for a way to calculate floating holidays and came across this solution for Thanksgiving: http://php.about.com/od/finishedphp1/qt/thanksgiving.htm That works great, but after I modify it a bit to work with Memorial Day, it always returns the 4th Monday instead of the last Monday in May for years where May has 5 Mondays. I need the day Memorial Day is observed otherwise I could just put '05/30' in the script. For example, everything I've tried returns 05/24 for 2010 when in fact it's 05/31 for that year. If anyone can point me in the right direction here, I will give you the heart straight from my chest!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.