🐘

PostgreSQL YYYY-MM-DD

Sortie: 2025-01-15
Reference Rapide
Chaine de Format
YYYY-MM-DD
Sortie
2025-01-15

Formater la date en YYYY-MM-DD avec PostgreSQL

🐘 PostgreSQL
SELECT TO_CHAR(NOW(), 'YYYY-MM-DD') AS formatted_date; -- Output: 2025-12-31

Codes de format de date PostgreSQL

Code Signification Exemple
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

Autres formats en PostgreSQL

YYYY-MM-DD dans autres langages

Documentation Officielle

Pour plus informations sur le formatage des dates en PostgreSQL, consultez la documentation officielle :

Documentation des dates PostgreSQL →

Pages Associees