PHP Current Date and Time
The date function is used to get the current date and time.
Let's output it in the 'year-month-day hours:minutes:seconds' format:
<?php
echo date('Y-m-d H:i:s');
?>
The date function is used to get the current date and time.
Let's output it in the 'year-month-day hours:minutes:seconds' format:
<?php
echo date('Y-m-d H:i:s');
?>