Answers for "python datetime.weekday()"

1

get weekday from date python

# int value range: 0-6, monday-sunday
weekday = datetime.weekday()
Posted by: Guest on June-04-2020
1

python datetime get weekday name

import datetime
now = datetime.datetime.now()
print(now.strftime("%A"))
Posted by: Guest on December-31-2020

Python Answers by Framework

Browse Popular Code Answers by Language