64 of 110 menu

PHP Get Date and Time

To get the current date and time, the function date is used. Let's output the current date-time in the format 'year-month-day hours:minutes:seconds':

<?php echo date('Y-m-d H:i:s'); ?>
English
БеларускаяEspañolРусский
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline