Re: Last Friday of every month
| From: | tedd | Date: | Fri, 14 Mar 2008 15:57:48 +0000 |
| Subject: | Re: Last Friday of every month | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-271579@lists.php.net to get a copy of this message | ||
At 8:17 AM -0400 3/14/08, Eric Butera wrote:
Just FYI you can use the word "last friday" in strtotime. So really you could check and see if the max day in a month is a friday and if not fall back on last friday. I didn't test it but I just thought I'd throw that out there. erics:~ eric$ php -r "echo date('n/j/Y', strtotime('last friday'));" 3/7/2008Eric: When I read that, I went "Na, that can't be right" -- so I checked it. You were right -- here it is: http://webbytedd.com/b1/last-friday/ Thanks for the suggestion. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com