Afficher un message
Vieux 14/03/2008, 11h02   #4
Richard Heyes
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Last Friday of every month

VamVan wrote:
> Can you tell me how to do this ?
>
> suppose I have a date variable = '02/23/2008'
>
> i need to know if this is the last friday of february....


Work backwards from the 28th subtracting 86400 from your Unix timestamp
until you get to a Friday. Compare this with your variable.

--
Richard Heyes
Employ me:
http://www.phpguru.org/cv
  Réponse avec citation
 
Page generated in 0,04264 seconds with 9 queries