theknight,
I recommend using a PEAR calendar component (or another PHP calendar component).
What you want to do will utilize more than just PHP's internal date functions.
You can see info here on that.
You will be able to build calendars into arrays, etc and parse & look for information.
if you do a quick search on the internet you may find one that isn't integrated into pear.