YYYY-MM

Esempio: 2025-12
ISO 8601 International 1.9K ricerche/mese

Cosa Significa YYYY-MM?

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

YYYY
Anno
4 cifre
MM
Mese
01-12

Data di Oggi in YYYY-MM

2025-01

YYYY-MM Esempi

Data YYYY-MM Nota
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

Formattare Data come YYYY-MM nel Codice

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

Vedi tutti i linguaggi →

Formati Data Correlati

Domande Frequenti

Cosa rappresenta YYYY-MM?
In YYYY-MM: YYYY = Anno a 4 cifre. MM = Mese a 2 cifre (01-12). Esempio: 2025-12
Perché YYYY-MM è raccomandato per i database?
Il formato YYYY-MM (ISO 8601) si ordina correttamente come testo, non è ambiguo e è lo standard SQL. È la scelta più sicura per archiviazione e scambio dati.
Come convertire nel formato YYYY-MM?
Usa il nostro strumento di conversione date per convertire istantaneamente qualsiasi data nel formato YYYY-MM, o vedi gli esempi di programmazione sopra.