🐬
MySQL DD/MM/YYYY
Saida: 15/01/2025
Referencia Rapida
String de Formato
%d/%m/%Y
Saida
15/01/2025
Formatar data como DD/MM/YYYY em MySQL
🐬 MySQL
SELECT DATE_FORMAT(NOW(), '%d/%m/%Y') AS formatted_date;
-- Output: 31/12/2025Analisar string de data
🐬 MySQL (Analise)
SELECT STR_TO_DATE('31/12/2025', '%d/%m/%Y') AS parsed_date;
-- Output: 2025-12-31Codigos de formato de data MySQL
| Codigo | Significado | Exemplo |
|---|---|---|
| %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 |
Outros formatos em MySQL
DD/MM/YYYY em outras linguagens
Documentacao Oficial
Para mais informacoes sobre formatacao de datas em MySQL, consulte a documentacao oficial: