Generate Date from week, day number and year.

PHP has a function named ‘setISODate’.  This function takes year, week number and day as parameter and returns a date.

$date = new DateTime();
$date->setISODate(2011,48,4); //year , week num , day
echo $date->format('d-m-Y'); //"prints"  date here




Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.