note 65692 added to function.date

From: Date: Fri, 05 May 2006 21:36:22 +0000
Subject: note 65692 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-110663@lists.php.net to get a copy of this message
If you do not PHP5 yet but want a week day to be in ISO format: 1 (for Monday) through 7 (for Sunday), you can use this: <? //GET WEEK DAY 0 FOR SUNDAY, 6 FOR SATURDAY $x = date( "w" ); $corrected_week_day = 7 - ( (7-$x) % (7+$x) ); ?> ---- Server IP: 216.235.15.211 Probable Submitter: 64.254.225.66 ---- 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/65692 Del: integrated -- http://master.php.net/note/delete/65692/integrated Del: useless -- http://master.php.net/note/delete/65692/useless Del: bad code -- http://master.php.net/note/delete/65692/bad+code Del: spam -- http://master.php.net/note/delete/65692/spam Del: non-english -- http://master.php.net/note/delete/65692/non-english Del: in docs -- http://master.php.net/note/delete/65692/in+docs Del: other reasons-- http://master.php.net/note/delete/65692 Reject -- http://master.php.net/note/reject/65692 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#110663) next »