Calculating a date interval with strtotime() : strtotime « String « PHP
- PHP
- String
- strtotime
Calculating a date interval with strtotime()
<?php
$birthday = 'March 10, 2010';
$whoopee_made = strtotime("$birthday - 9 months ago");
?>
Related examples in the same category