day = \"13/Oct/2013\" print(\"Parsing :\",day) day, mon, yr= day.split(\"/\") sday = yr+\" \"+day+\" \"+mon myday = time.strptime(sday, \'%Y %d %b\') Sstart = yr+\"
Use the pendulum module:
today = pendulum.now() start = today.start_of('week') end = today.end_of('week')