🐬
MySQL DD/MM/YYYY
Ieșire: 15/01/2025
Referință Rapidă
Șir de Format
%d/%m/%Y
Ieșire
15/01/2025
Formatarea datei ca DD/MM/YYYY în MySQL
🐬 MySQL
SELECT DATE_FORMAT(NOW(), '%d/%m/%Y') AS formatted_date;
-- Output: 31/12/2025Parsarea șirului de dată
🐬 MySQL (Parsare)
SELECT STR_TO_DATE('31/12/2025', '%d/%m/%Y') AS parsed_date;
-- Output: 2025-12-31Coduri de format dată MySQL
| Cod | Semnificație | Exemplu |
|---|---|---|
| %d | Day of month (01-31) | 31 |
| %e | Day of month (1-31) | 31 |
| %m | Month (01-12) | 12 |
| %c | Month (1-12) | 12 |
| %Y | Year (4 digits) | 2025 |
| %y | Year (2 digits) | 25 |
| %b | Abbreviated month | Dec |
| %M | Full month name | December |
Alte formate în MySQL
DD/MM/YYYY în alte limbaje
Documentație Oficială
Pentru mai multe informații despre formatarea datelor în MySQL, vezi documentația oficială: