🐘

PHP YYYY-MM-DD

Output: 2025-01-15
Snelle Referentie
Formaat String
Y-m-d
Output
2025-01-15

Datum formatteren als YYYY-MM-DD in PHP

🐘 PHP
<?php echo date('Y-m-d'); // Output: 2025-12-31

PHP datumformaatcodes

Code Betekenis Voorbeeld
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

Andere formaten in PHP

YYYY-MM-DD in andere talen

Officiële Documentatie

Voor meer informatie over datumformattering in PHP, zie de officiële documentatie:

PHP datumdocumentatie →

Gerelateerde Pagina's