Last Friday of this month
Today's date is: 01/06/2009
Last Friday of this month is: 01/31/09
CODE:
<?php $today = date('m/d/Y'); $daysInMonth = date('t', strtotime($today)); $month = date('m'); $year = date('y'); $newDate = $month . '/' . $daysInMonth . '/' . $year; $lastFriday = date($newDate, strtotime('last friday')); ?>