<?php //Fecha extraida de DB $int0 = strtotime($fecha_db); //Fecha de Hoy $int1 = strtotime("now"); //Diferencia $result = $int0 - $int1; //output echo date("d-m-Y",$result); ?>