Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php timestamp


<?php
$nextWeek = time() + (7 * 24 * 60 * 60);
                   // 7 days; 24 hours; 60 mins; 60 secs
echo 'Now:       '. date('Y-m-d') ."
";
echo 'Next Week: '. date('Y-m-d', $nextWeek) ."
";
// or using strtotime():
echo 'Next Week: '. date('Y-m-d', strtotime('+1 week')) ."
";
?>

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #timestamp
ADD COMMENT
Topic
Name
9+5 =