RE: [PHP] Last Sunday in September?

2006-02-17 Thread Shaunak Kashyap
ion. -Original Message- From: Jay Paulson [mailto:[EMAIL PROTECTED] Sent: Friday, February 17, 2006 10:07 AM To: php-general@lists.php.net Subject: [PHP] Last Sunday in September? Hi, I'm building a program and I need to find the last Sunday in September for every year because th

Re: [PHP] Last Sunday in September?

2006-02-17 Thread tg-php
There's going to be 'tighter' and more efficient ways to do this.. probably some using strtotime(). I have an irrational distrust of the results from strtotime() though, so I use it sparingly. Here's a simple solution though: There's going to be a dozen ways to skin this one, just showing on

[PHP] Last Sunday in September?

2006-02-17 Thread Jay Paulson
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