Last Sunday in September?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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++
}

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux