You can output the date-number using the function
date.
See usage examples:
<?php
echo date('d'); // current day of the month
echo date('m'); // current month
echo date('Y'); // current year
echo date('d-m-Y'); // in the 'day-month-year' format
?>
See Also
-
the
date function,
which formats a date