Saturday, October 06, 2012

PHP Time Calculate using "strtotime"

Ref. http://stackoverflow.com/questions/277247/increase-days-to-php-current-date
<?php

$day=3;
echo date("Y-m-d",strtotime("+$day days"));
?>

It would display the date in 3 days.

No comments:

Post a Comment