Convert YYYY-MM to DD/MM/YYYY

2025-01 → 15/01/2025

Quick Converter

15/01/2025

How to Convert YYYY-MM to DD/MM/YYYY

Converting from YYYY-MM to DD/MM/YYYY involves rearranging the date components:

From
YYYY-MM
2025-01
to
DD/MM/YYYY
15/01/2025
1

Identify the Parts

In YYYY-MM: Year-month format following ISO 8601, ideal for file naming and sorting

2

Rearrange

Reorder to match DD/MM/YYYY format: Day-Month-Year format commonly used in Europe, Asia, and most of the world

3

Adjust Separator

Change the separator from "-" to "/" if needed.

Code Examples

JavaScript
// Convert YYYY-MM to DD/MM/YYYY function convertDate(dateStr) { // Parse YYYY-MM const parts = dateStr.split('-'); const [year, month, day] = parts; // Format as DD/MM/YYYY return `${day}/${month}/${year}`; } console.log(convertDate('2025-01')); // 15/01/2025
Python
from datetime import datetime # Convert YYYY-MM to DD/MM/YYYY date_str = '2025-01' date = datetime.strptime(date_str, '%Y-%m-%d') result = date.strftime('%d/%m/%Y') print(result) # 15/01/2025

Other Conversions

Open Full Converter →

Related Pages