isoweekday()
« Date
isoweekday() : day of the week as integer, Sunday =0 , Monday =1 ....
Today's isweekday()
from datetime import date
dt=date.today()
print(dt.isoweekday())
Output
2
Using date and time object
from datetime import datetime
dt=datetime(2019,12,31)
print(dt.isoweekday())
Output
2
2nd Saturday | Display 2nd and 4th Saturday of the month |
calendar | Calendar module to Create yearly or monthly Calendars |
« All Date Objects
← Subscribe to our YouTube Channel here
This article is written by plus2net.com team.
https://www.plus2net.com
plus2net.com