note 65816 added to function.date
| From: | sanjeevr at e-lixirweb dot com | Date: | Mon, 08 May 2006 13:20:44 +0000 |
| Subject: | note 65816 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-110854@lists.php.net to get a copy of this message | ||
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;
----
Server IP: 203.199.124.111
Probable Submitter: 220.227.173.170 (proxied: 192.168.0.155)
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.date.php
Edit -- http://master.php.net/note/edit/65816
Del: integrated -- http://master.php.net/note/delete/65816/integrated
Del: useless -- http://master.php.net/note/delete/65816/useless
Del: bad code -- http://master.php.net/note/delete/65816/bad+code
Del: spam -- http://master.php.net/note/delete/65816/spam
Del: non-english -- http://master.php.net/note/delete/65816/non-english
Del: in docs -- http://master.php.net/note/delete/65816/in+docs
Del: other reasons-- http://master.php.net/note/delete/65816
Reject -- http://master.php.net/note/reject/65816
Search -- http://master.php.net/manage/user-notes.php