人気の日付フォーマット
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)です。地域ごとの日付フォーマットの混乱を避けるために設計されています。