Jump to content

[SOLVED] I have a questionj about dates


gcpeters

Recommended Posts

Hello, I am new to the board, seems like a very nice web site. I tried to find some posting rules but was unable to, so if I am violating any I apologize. I have an interesting conundrum. I am working on an application that will list events (b-day parties, concerts, what not). After I have pulled the events out of the DB I need to determine the next time the event will occur. One time events are a no brainer, but the other events are reoccurring. They will either repeat at regular weekly intervals or they will occur semiweekly, say the 1st Wednesday of the month or the 1st and the 3rd or any combo like that. So I think I can determine from the start date and the time elapsed what the next occurrence is. I tried a sort of PHP/JavaScript hybrid solution, but it is not working and would rather solve this with PHP alone. Does anyone have any insight into this type of problem? I have looked at some tutorials on date manipulation, but haven't realy found anything on this type of thing.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/40645-solved-i-have-a-questionj-about-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.