🐘
PHP DD/MM/YYYY
Output: 15/01/2025
Riferimento Rapido
Stringa Formato
d/m/Y
Output
15/01/2025
Formattare data come DD/MM/YYYY in PHP
🐘 PHP
<?php
$date = new DateTime();
echo $date->format('d/m/Y'); // Output: 31/12/2025
// Or using date() function
echo date('d/m/Y'); // Output: 31/12/2025Codici formato data PHP
| Codice | Significato | Esempio |
|---|---|---|
| d | Day (01-31) | 31 |
| j | Day (1-31) | 31 |
| m | Month (01-12) | 12 |
| n | Month (1-12) | 12 |
| Y | Year (4 digits) | 2025 |
| y | Year (2 digits) | 25 |
| M | Abbreviated month | Dec |
| F | Full month | December |
Altri formati in PHP
DD/MM/YYYY in altri linguaggi
Documentazione Ufficiale
Per maggiori informazioni sulla formattazione date in PHP, consulta la documentazione ufficiale: