note 10353 added to date
| From: | r dot verkuylen at call dot hexspoor dot nl | Date: | Fri, 29 Dec 2000 16:23:14 +0000 |
| Subject: | note 10353 added to date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9175@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));
}
http://www.php.net/manual/function.date.php