Afficher un message
Vieux 14/03/2008, 17h57   #5
tedd
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Last Friday of every month

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/2008


Eric:

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
  Réponse avec citation
 
Page generated in 0,04560 seconds with 9 queries