43 of 110 menu

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'); ?>
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