note 10353 deleted from function.date by jimw
| From: | jimw@php.net | Date: | Fri, 02 Nov 2001 00:52:57 +0000 |
| Subject: | note 10353 deleted from function.date by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-20067@lists.php.net to get a copy of this message | ||
To get the date out of a weeknr+year:
function WknrToDate($wknr, $yr)
{
$mindagen = date("w", mktime (($wknr*7*24),0,0,1,1,$yr))-1;
return date("d-m-Y", mktime ((($wknr*7*24)-(24*$mindagen)),0,0,1,1,$yr));
}