🐘
PostgreSQL DD/MM/YYYY
Output: 15/01/2025
Riferimento Rapido
Stringa Formato
DD/MM/YYYY
Output
15/01/2025
Formattare data come DD/MM/YYYY in PostgreSQL
🐘 PostgreSQL
SELECT TO_CHAR(NOW(), 'DD/MM/YYYY') AS formatted_date;
-- Output: 31/12/2025Parsare stringa data
🐘 PostgreSQL (Parsing)
SELECT TO_DATE('31/12/2025', 'DD/MM/YYYY') AS parsed_date;
-- Output: 2025-12-31Codici formato data PostgreSQL
| Codice | Significato | Esempio |
|---|---|---|
| DD | Day of month (01-31) | 31 |
| MM | Month (01-12) | 12 |
| YYYY | Year (4 digits) | 2025 |
| YY | Year (2 digits) | 25 |
| Mon | Abbreviated month | Dec |
| Month | Full month name | December |
Altri formati in PostgreSQL
DD/MM/YYYY in altri linguaggi
Documentazione Ufficiale
Per maggiori informazioni sulla formattazione date in PostgreSQL, consulta la documentazione ufficiale: