>>> import datetime
>>> today=datetime.date.today()
>>> today.month
10
>>> today.day
30
>>> today.year
2012
>>> today.weekday()
1
>>> datetime.date(2012,10,31).weekday()
2
>>> datetime.date(2012,10,28).weekday()
6
>>> dayCount=[None,31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
