熱門日期格式
DD/MM/YYYY
31/12/2025
Day-Month-Year format commonly used in Europe, Asia, and most of the world
YYYY-MM-DD
ISO
2025-12-31
ISO 8601 standard format, ideal for sorting and international use
DD/MM
31/12
Short day-month format without year, used for birthdays and recurring dates
MM/YYYY
12/2025
Month-year format commonly used for credit cards, expiration dates, and monthly reports
DD/M/YY
31/12/25
Short format with 2-digit year, compact but can be ambiguous
MM/DD/YYYY
12/31/2025
Month-Day-Year format primarily used in the United States
今天是幾號?
程式語言日期格式
快速連結
常見問題
MM/DD/YYYY和DD/MM/YYYY有什麼區別?
MM/DD/YYYY將月份放在前面(美國使用),而DD/MM/YYYY將日期放在前面(大多數其他國家使用)。例如,3月4日在MM/DD/YYYY中是03/04/2026,但在DD/MM/YYYY中是04/03/2026。
資料庫應該使用哪種日期格式?
YYYY-MM-DD(ISO 8601)是資料庫推薦的格式,因為它作為文字正確排序,國際上無歧義,且是SQL標準。
ISO 8601是什麼?
ISO 8601是日期和時間表示的國際標準。日期格式為YYYY-MM-DD(例如2026-02-03)。它旨在避免不同地區日期格式之間的混淆。