- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$fecha = date('Y-m-d');
$nuevafecha = strtotime ( '-3 hour' , strtotime ( $fecha ) ) ;
echo date('Y-m-d',$nuevafecha)."\n";
$nuevafecha = date ( 'Y-m-d' , $nuevafecha );
echo $nuevafecha."\n";
?>