the built in function strtotime is ideal.
<?php
echo date('d/m/Y H:i:s',strtotime('-2 hours'));
?>
2
solved What is method for getting time and date which less to current date and time
the built in function strtotime is ideal.
<?php
echo date('d/m/Y H:i:s',strtotime('-2 hours'));
?>
2
solved What is method for getting time and date which less to current date and time