Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to get today weekday in python

today_day = date.today()
days = ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","sunday"]
print("Today weekday is ",days[today_day.weekday()])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #today #weekday #python
ADD COMMENT
Topic
Name
3+6 =