YYYY-MM

Example: 2025-12
ISO 8601 International 1.9K searches/mo

What Does YYYY-MM Mean?

Year-month format following ISO 8601, ideal for file naming and sorting

YYYY
Year
4 digits
MM
Month
01-12

Today's Date in YYYY-MM

2025-01

YYYY-MM Examples

Date YYYY-MM Note
New Year's Day 2026-01 New Year's Day
Valentine's Day 2026-02 Valentine's Day
Independence Day (US) 2026-07 Independence Day (US)
Christmas 2026-12 Christmas
New Year's Eve 2026-12 New Year's Eve

Format Date as YYYY-MM in Code

Javascript
date.toISOString().slice(0, 7)
Python
date.strftime('%Y-%m')
Php
date('Y-m')
Mysql
DATE_FORMAT(date, '%Y-%m')

See all programming languages →

Related Date Formats

Frequently Asked Questions

What does YYYY-MM stand for?
In YYYY-MM: YYYY = 4-digit year. MM = 2-digit month (01-12). Example: 2025-12
Why is YYYY-MM recommended for databases?
The YYYY-MM format (ISO 8601) sorts correctly as text, is internationally unambiguous, and is the SQL standard. It's the safest choice for data storage and exchange.
How do I convert to YYYY-MM format?
Use our date converter tool to instantly convert any date to YYYY-MM format, or check the programming examples above for code solutions.