The code below result is
Week 37(10/09-16/09)
1 2 3 4 5 6 7 8 |
$thisYear = date('Y'); $weekNum = date("W"); $datemon = date('d/m', strtotime("$thisYear-W$weekNum-1")); $datesun = date('d/m', strtotime("$thisYear-W$weekNum-7")); echo "Week ".$weekNum."(".$datemon."-".$datesun.")"; |