🐍
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/2025Python തീയതി ഫോർമാറ്റ് കോഡുകൾ
| കോഡ് | അർഥം | ഉദാഹരണം |
|---|---|---|
| %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 ൽ തീയതി ഫോർമാറ്റിംഗിനെക്കുറിച്ച് കൂടുതൽ വിവരങ്ങൾക്ക്, ഔദ്യോഗിക ഡോക്യുമെന്റേഷൻ കാണുക: