Re: determine date range
| From: | slith | Date: | Wed, 12 Dec 2007 17:38:53 +0000 |
| Subject: | Re: determine date range | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-265784@lists.php.net to get a copy of this message | ||
yes, i was trying to keep things simple and avoid using a database but i think may go that route like you suggested.
Andrew Ballard wrote:
Will the boundary dates for each season change from one year to the next? If so, I would probably store the seasons in a database table and then just query from that table where the user-entered date is between the season start and end dates. The table of seasons could have dates configured as far out into the future as desired. If the boundary dates are the same every year, you can ignore the year and just compare the month/day of the user-entered date with the month/day of the season boundaries. Andrew