Tag Archives: php

How to add days, weeks, months to any date in PHP

How to add days, weeks, months to any date in PHP $date = date(“Y-m-d”);// current date $date = strtotime(date(“Y-m-d”, strtotime($date)) . ” +1 day”); $date = strtotime(date(“Y-m-d”, strtotime($date)) . ” +1 week”); $date = strtotime(date(“Y-m-d”, strtotime($date)) . ” +2 week”); …
Read More »

Posted on