You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import datetime
|
|
Jan1st = datetime.date(2017,10,12)
|
|
year,week_num,day_of_week = Jan1st.isocalendar() # DOW = day of week
|
|
print()
|
|
print("Year %d, Week Number %d, Day of the Week %d" %(year,week_num, day_of_week))
|
|
print() |