🐘
PostgreSQL YYYY-MM-DD
Output: 2025-01-15
Mabilis na Reference
Format String
YYYY-MM-DD
Output
2025-01-15
I-format ang petsa bilang YYYY-MM-DD sa PostgreSQL
🐘 PostgreSQL
SELECT TO_CHAR(NOW(), 'YYYY-MM-DD') AS formatted_date;
-- Output: 2025-12-31Mga PostgreSQL date format codes
| Code | Kahulugan | Halimbawa |
|---|---|---|
| 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 |
Ibang mga format sa PostgreSQL
YYYY-MM-DD sa ibang wika
Opisyal na Dokumentasyon
Para sa higit pang impormasyon tungkol sa pag-format ng petsa sa PostgreSQL, tingnan ang opisyal na dokumentasyon: