I want to find out the following: given a date (datetime object), what is the corresponding day of the week?
datetime
For instance, Sunday is the first day, Mond
import datetime int(datetime.datetime.today().strftime('%w'))+1
this should give you your real day number - 1 = sunday, 2 = monday, etc...