I have a contest that is running on my site. A new winner is choosen every Monday. The date that the prize is awarded is shown and I have to edit it each week. My question is how can I dynamically change the date each week with PHP?
TIA Perry
<? $today=date("w");
$mon=$today-1; $mondate=date("d/m/Y", mktime(12, 0, 0, date("m"), date("d")-$mon, date("Y"))); echo "Mondays date is ".$mondate; ?>