Convert MM/DD/YYYY to DD/MM/YYYY
01/15/2025 → 15/01/2025
Quick Converter
→
15/01/2025
How to Convert MM/DD/YYYY to DD/MM/YYYY
Converting from MM/DD/YYYY to DD/MM/YYYY involves rearranging the date components:
From
MM/DD/YYYY
01/15/2025
To
DD/MM/YYYY
15/01/2025
1
Identify the Parts
In MM/DD/YYYY: Month-Day-Year format primarily used in the United States
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 MM/DD/YYYY to DD/MM/YYYY
function convertDate(dateStr) {
// Parse MM/DD/YYYY
const parts = dateStr.split('/');
const [month, day, year] = parts;
// Format as DD/MM/YYYY
return `${day}/${month}/${year}`;
}
console.log(convertDate('01/15/2025')); // 15/01/2025
Python
from datetime import datetime
# Convert MM/DD/YYYY to DD/MM/YYYY
date_str = '01/15/2025'
date = datetime.strptime(date_str, '%m/%d/%Y')
result = date.strftime('%d/%m/%Y')
print(result) # 15/01/2025