When using Python strftime, is there a way to remove the first 0 of the date if it's before the 10th ie. so 01 is 1? Can't find a %thingy for ...
This is probably very simple, but I am a beginner in python and I wanted to compare birthday dates by prompting a user to enter a date in MM-DD format. No ...
Possible Duplicate: Python: Date Ordinal Output?
I did something like this :
import datetime nb_blank_days = (int(datetime.date(year, month, 1).strftime('%w'))+6)%7