import datetime s = "04.07.2016"d = datetime.datetime.strptime(s,"%d.%m.%Y")print(d.weekday())
Standard input is empty
0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!