Count up from date and display weeks and days only - PHP -
how can count date, may 7, 2016 , display number of weeks , days (5 weeks 1 day) date least amount of code?
use this
<?php $date = "may 07, 2011"; $date = strtotime($date); $week=5; $day=1; $days=(5*7)+1; $date = strtotime("+".$days." day", $date); echo date('m d, y', $date); ?>
Comments
Post a Comment