note 65816 deleted from function.date by derick
| From: | derick@php.net | Date: | Sun, 11 Jun 2006 11:47:12 +0000 |
| Subject: | note 65816 deleted from function.date by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-114270@lists.php.net to get a copy of this message | ||
Note Submitter: sanjeevr at e-lixirweb dot com
----
this is used to find the start date and the end date of the week
$x = date( "w" );
$today=date("d");
// day of the week
//$corrected_week_day = 7 - ( (7-$x) % (7+$x) );
$corrected_week_day=date("N");
echo $start_date=$today-$corrected_week_day;
echo $end_date=$start_date+7;