🐍

Python DD/MM/YYYY

Çıktı: 15/01/2025
Hızlı Referans
Format Dizesi
%d/%m/%Y
Çıktı
15/01/2025

Python'de tarihi DD/MM/YYYY olarak biçimlendirme

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

Tarih dizesini ayrıştırma

🐍 Python (Ayrıştırma)
from datetime import datetime date_string = '31/12/2025' date = datetime.strptime(date_string, '%d/%m/%Y') print(date) # Output: 2025-12-31 00:00:00

Python tarih format kodları

Kod Anlam Örnek
%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'de diğer formatlar

Diğer dillerde DD/MM/YYYY

Resmi Dokümantasyon

Python'de tarih biçimlendirme hakkında daha fazla bilgi için resmi dokümantasyona bakın:

Python tarih dokümantasyonu →

İlgili Sayfalar