".lastUpdatedTrick(2, "l, M jS Y").""; // bellow are 4 examples of the output you can generate // visit http://www.php.net/manual/en/function.date.php // for getting an overview of all possible output variations //"M-d-Y" // for e.g. May-05-2003 //"y-m-d" // for e.g. 03-05-05 //"Y-m-d" // for e.g. 2003-05-05 //"D, Y-m-d" // for e.g. Mon, 2003-05-05 //$daysFromToday are the days you want your last site update be from //$outputFormat is the output format - make sure you use "YOUR_VALUE" and not just YOUR_VALUE function lastUpdatedTrick($daysFromToday,$outputFormat) { $days = date("d") - $daysFromToday; return date ($outputFormat, mktime (0,0,0,date("m"),$days,date("Y"))); } ?>