note 57720 deleted from function.date by bobby
| From: | bobby@php.net | Date: | Thu, 07 Sep 2006 17:36:44 +0000 |
| Subject: | note 57720 deleted from function.date by bobby | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-116848@lists.php.net to get a copy of this message | ||
Note Submitter: jim at catsanddogs dot com
----
To get the start date for a working week:
<?php
list($iDay, $iMonth, $iYear) = split('-', date('d-m-Y', mktime(0, 0, 0,
date('n'), ((date('j')+1)-date('w')), date('Y'))));
return $iDay.'-'.$iMonth.'-'.$iYear;
?>