import time # Format : Jour/Mois/Année wy = lambda d: time.strftime('%W',time.strptime(d,'%d/%m/%Y')) print wy('03/02/2007') # Affichera '05'