Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- racking my brain - php dates


Crump - 10:44 pm on Jan 25, 2011 (gmt 0)


I've been trying to figure this one out, and I think my head is going to explode. I have 4 dates, that establish two parts to a year. Like this:

4/10 - 9/20 = Season 1
9/21 - 4/9 = Season 2

Then I have a date, and I need to figure out which Season it goes in.

For instance, 4/25 would go in season 1.

11/12 would go in season 2.

The years are not important.

I can't figure a way to approach this in PHP. My brain hurts! Please help!


Thread source:: http://www.webmasterworld.com/php/4258105.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com