49 of 110 menu

PHP Date Number

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
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