🐍
Python DD/MM/YYYY
ഔട്ട്പുട്ട്: 15/01/2025
ദ്രുത റഫറൻസ്
ഫോർമാറ്റ് സ്ട്രിംഗ്
%d/%m/%Y
ഔട്ട്പുട്ട്
15/01/2025
Python ൽ DD/MM/YYYY ആയി തീയതി ഫോർമാറ്റ് ചെയ്യൽ
🐍 Python
from datetime import datetime
date = datetime.now()
formatted = date.strftime('%d/%m/%Y')
print(formatted) # Output: 31/12/2025തീയതി സ്ട്രിംഗ് പാഴ്സ് ചെയ്യൽ
🐍 Python (പാഴ്സിംഗ്)
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:00Python തീയതി ഫോർമാറ്റ് കോഡുകൾ
| കോഡ് | അർഥം | ഉദാഹരണം |
|---|---|---|
| %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 ലെ മറ്റ് ഫോർമാറ്റുകൾ
മറ്റ് ഭാഷകളിലെ DD/MM/YYYY
ഔദ്യോഗിക ഡോക്യുമെന്റേഷൻ
Python ൽ തീയതി ഫോർമാറ്റിംഗിനെക്കുറിച്ച് കൂടുതൽ വിവരങ്ങൾക്ക്, ഔദ്യോഗിക ഡോക്യുമെന്റേഷൻ കാണുക: