lördag 7 december 2013

difference between weeks

Example, if you have a course that start one week and ends after 10 weeks, and you want to calculate which week you current are in your course.
$currentWeek = strtotime("2013W51");
$startWeek = strtotime("2013W54");
$difference = $currentWeek - $startWeek;

$currentWeek =  date('W', $c);

Inga kommentarer:

Skicka en kommentar