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.
<?php
$date = new DateTime();
$date->setISODate(2011,48,4); //year , week num , day
echo $date->format('d-m-Y'); //"prints" date here
//
To read More about from here posted by Maz
Generate Date from week, day number and year.
Tags:
0 comments: