|
Posted by Norman Peelman on 10/02/06 23:08
<jferree@gmail.com> wrote in message
news:1159828613.659706.301710@h48g2000cwc.googlegroups.com...
> If given a date such as
>
> 12-05-2005
>
> How can I find the closest Friday which would be
> 12-02-2005
>
> Thanks for any help
>
> Jim
>
$timestamp = mktime(0,0,0,$month,$day,$year);
$lastFriday = date("m-d-Y",strtotime("last Friday",$timestamp));
Norm
www.php.net
Navigation:
[Reply to this message]
|