Monday, June 9, 2014

PHP: Add number of days to a date

echo date('Y-m-d', strtotime("+14 days"));

See the manual pages for
http://www.php.net/manual/en/function.strtotime.php 
http://www.php.net/manual/en/function.date.php

No comments:

Post a Comment