YYYY-MM ကို DD/MM/YYYY သို့ ပြောင်းရန်

2025-01 → 15/01/2025

အမြန်ပြောင်းလဲကိရိယာ

15/01/2025

YYYY-MM ကို DD/MM/YYYY သို့ ဘယ်လိုပြောင်းမလဲ

YYYY-MM မှ DD/MM/YYYY သို့ ပြောင်းခြင်းတွင် ရက်စွဲအစိတ်အပိုင်းများ ပြန်စီရန်ပါဝင်သည်:

မှ
YYYY-MM
2025-01
သို့
DD/MM/YYYY
15/01/2025
1

အစိတ်အပိုင်းများခွဲခြား

YYYY-MM တွင်: Year-month format following ISO 8601, ideal for file naming and sorting

2

ပြန်စီပါ

DD/MM/YYYY ပုံစံနှင့်ကိုက်ညီရန် ပြန်စီပါ: Day-Month-Year format commonly used in Europe, Asia, and most of the world

3

ခြားနားကိရိယာချိန်ညှိ

လိုအပ်ပါက ခြားနားကိရိယာကို "-" မှ "/" သို့ ပြောင်းပါ။

ကုဒ်ဥပမာများ

JavaScript
// YYYY-MM ကို DD/MM/YYYY သို့ ပြောင်းရန် function convertDate(dateStr) { // YYYY-MM ခွဲခြမ်းရန် const parts = dateStr.split('-'); const [year, month, day] = parts; // DD/MM/YYYY အဖြစ် ပုံစံချရန် return `${day}/${month}/${year}`; } console.log(convertDate('2025-01')); // 15/01/2025
Python
from datetime import datetime # YYYY-MM ကို 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

အခြားပြောင်းလဲမှုများ

ပြောင်းလဲကိရိယာအပြည့် ဖွင့်ရန် →

ဆက်စပ်စာမျက်နှာများ