Calendar code - weekly recurring event?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rubenc
Forum Newbie
Posts: 6
Joined: Fri Aug 04, 2006 3:37 am

Calendar code - weekly recurring event?

Post by rubenc »

Forgive me if I didn't find the already discussed topic and in that case please refer me to that threat. In all other cases here is my problem:

I like to generate an array that is filled with the dates of all Mondays of a year.
Unfortunately, I don't know where to start coding. Can this be done in a simple way?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

strtotime() will be the function to use most.
rubenc
Forum Newbie
Posts: 6
Joined: Fri Aug 04, 2006 3:37 am

Post by rubenc »

Thank you for the fast reply....sorry to have bothered you with something this easy :oops:
Anyway, my database fills nicely with events.

For persons interested, this contribution helps to create a calendar snippet for the Etomite CMS (eventually)
Post Reply