Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python datetime weekday

from datetime import datetime
date_str='10-12-20'
datetime_object = datetime.strptime(date_str, '%m-%d-%y')
datetime_object.weekday()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #datetime #weekday
ADD COMMENT
Topic
Name
6+1 =