PHP Get Date
To get the current date, the
date
function is used.
Let's display the current date in the
'year-month-day' format:
<?php
echo date('Y-m-d');
?>
To get the current date, the
date
function is used.
Let's display the current date in the
'year-month-day' format:
<?php
echo date('Y-m-d');
?>