Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

change month name in python

month_name = "Jan"
datetime_object = datetime.datetime.strptime(month_name, "%b")
month_number = datetime_object.month
print(month_number)
OUTPUT
Source by www.kite.com #
 
PREVIOUS NEXT
Tagged: #change #month #python
ADD COMMENT
Topic
Name
6+9 =