Last Sunday in September?
| From: | Jay Paulson | Date: | Fri, 17 Feb 2006 18:07:28 +0000 |
| Subject: | Last Sunday in September? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-230654@lists.php.net to get a copy of this message | ||
Hi,
I'm building a program and I need to find the last Sunday in September for
every year because the following Monday is the start of a new year for us.
So 2006 ends on September 24th 2006 and the new year (2007) starts on
September 25th 2006. I was thinking that using the strtotime() would get me
this information possibly? Is there an easy way to get this information?
Pseudo code:
If ((date > last Sunday in September this year) &&
(date < Jan 1 of next year)) {
year++
}