🐍

Python MM/DD/YYYY

ප්‍රතිදානය: 01/15/2025
ඉක්මන් යොමුව
ආකෘති තන්තුව
%m/%d/%Y
ප්‍රතිදානය
01/15/2025

Python හි MM/DD/YYYY ලෙස දිනය ආකෘතිගත කිරීම

🐍 Python
from datetime import datetime date = datetime.now() formatted = date.strftime('%m/%d/%Y') print(formatted) # Output: 12/31/2025

Python දින ආකෘති කේත

කේතය අර්ථය උදාහරණය
%d Day of month (01-31) 31
%m Month (01-12) 12
%Y Year with century 2025
%y Year without century (00-99) 25
%b Abbreviated month name Dec
%B Full month name December
%a Abbreviated weekday Wed
%A Full weekday name Wednesday

Python හි වෙනත් ආකෘති

වෙනත් භාෂාවල MM/DD/YYYY

නිල ලේඛනය

Python හි දින ආකෘතිගත කිරීම ගැන වැඩි විස්තර සඳහා, නිල ලේඛනය බලන්න:

Python දින ලේඛනය →

අදාළ පිටු