Wednesday, April 8, 2009

Weekly Source Code: PHP Say When Its The Easter Date

Today its Wednesday, 8 April 2009 in a couple of days on Sunday its Easter when we eat a lot of chocolate eggs and spend time with family.

Because Easter is always on a Sunday the date differs each year. By surprise I found that PHP has a easter_date function that returns the easter sunday date given a year or if no year parameter provided for the current year.


Nice if you want to run a special event on your website or offer free choclates on Easter (if you do please let me know!).

Happy Easter!

1 comment:

Zahir said...

Hullo Lennie

It would be nice if you could post the code?

I am using the script in my blog (luckily wordpress has written a wrapper already)

http://itscommonsensestupid.blogspot.com/2009/01/code-syntax-highlighter-on-blogger.html

Regards

Zahir