YYYY-MM MM/YYYY ට පරිවර්තනය

2025-01 → 01/2025

ඉක්මන් පරිවර්තකය

01/2025

YYYY-MM MM/YYYY ට පරිවර්තනය කරන්නේ කෙසේද

YYYY-MM සිට MM/YYYY ට පරිවර්තනයේදී දින කොටස් නැවත සකස් කිරීම ඇතුළත් වේ:

සිට
YYYY-MM
2025-01
MM/YYYY
01/2025
1

කොටස් හඳුනාගන්න

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

2

නැවත සකස් කරන්න

MM/YYYY ආකෘතියට ගැළපෙන ලෙස නැවත සකස් කරන්න: Month-year format commonly used for credit cards, expiration dates, and monthly reports

3

වෙන්කරන්නා සකසන්න

අවශ්‍ය නම් වෙන්කරන්නා "-" සිට "/" ට වෙනස් කරන්න.

කේත උදාහරණ

JavaScript
// YYYY-MM MM/YYYY ට පරිවර්තනය function convertDate(dateStr) { // YYYY-MM විග්‍රහ කරන්න const parts = dateStr.split('-'); const [year, month, day] = parts; // MM/YYYY ලෙස ආකෘතිගත කරන්න return `${year}-${month}-${day}`; } console.log(convertDate('2025-01')); // 01/2025
Python
from datetime import datetime # YYYY-MM MM/YYYY ට පරිවර්තනය date_str = '2025-01' date = datetime.strptime(date_str, '%Y-%m-%d') result = date.strftime('%Y-%m-%d') print(result) # 01/2025

වෙනත් පරිවර්තන

සම්පූර්ණ පරිවර්තකය විවෘත කරන්න →

අදාළ පිටු