Jump to content

[SOLVED] Working with dates


ninedoors

Recommended Posts

I am creating a schedule for a league and we play on certain days during the week, let's say Monday's and Wednesday's.  Is there a date function that will allow me to input a date say 2008-09-22 and then get the next coming monday as well as the next wednesday?  I'm not to farmilar with the date functions. 

 

Right now i have an array with the days I play.  If it was Monady and Wednesday then my array would be $days = (1, 3).  I would like to make this so I can input thru a form the days I wnat to schedule for league play and this function can output the next x number of days to play.  Hope this makes sense.

 

Just looking for a little guidance and not a solution.  Maybe point me toward the correct date functions I could use to achieve such a function.

 

I saw in the manual a few function people had wrote that found the last working day in a month and such, so I think this could be pretty easy if I knew the date function better.

 

Nick

Link to comment
https://forums.phpfreaks.com/topic/120214-solved-working-with-dates/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.