note 39206 deleted from function.date by nlopess
| From: | nlopess@php.net | Date: | Wed, 21 Jan 2004 17:11:52 +0000 |
| Subject: | note 39206 deleted from function.date by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-63958@lists.php.net to get a copy of this message | ||
Note Submitter: email@no.com
----
One QUESTION???
function dataWeekOfYear($data)
{
list($dd,$mm,$aaaa) = explode("/",$data);
return date("W", mktime(0, 0, 0, $mm, $dd, $aaaa));
}
// $dd = day, $mm = month, $aaaa = Year -> dd/mm/aaaa
echo dataWeekOfYear("04/01/2004");
return 1, but would return 2, because is 2º week of year.