note 97606 deleted from function.date by derick

From: Date: Sun, 15 Aug 2010 18:36:21 +0000
Subject: note 97606 deleted from function.date by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-171701@lists.php.net to get a copy of this message
Note Submitter: keyboard4444 at gmail dot com ---- In report generation I use this to create list of week for the year (display all the week) <?php $zxc = date('Y'); //Get the current year $qwe = strtotime( "$zxc-1-1"); //First day of the Year //1 year has 52 week for( $week = 0; $week <= 52; $week++) { $asd = strtotime( "+$week week" ,$qwe); $valid = $asd; echo "Week ".date( 'W', $valid).", ".date( 'Y-m-d', $valid)."<br/>"; } ?>

« previous php.notes (#171701) next »