datetime python only week number code example Example: pyhton find dates in weeks >>> import datetime >>> datetime.date(2010, 6, 16).isocalendar()[1] 24