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

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -