- var_dump: documentation ( source)
- time: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$dateNow = date('Y-m-d', time());
$dateYearAgo = date('Y-m-d', strtotime('1 year ago'));
var_dump($dateNow, $dateYearAgo);