So, it turns out that the week number is strptimenot enough to get the date. Add the default day of the week to the row for it to work.
> from datetime import datetime
> myDate = "2016 51"
> datetime.strptime(myDate + ' 0', "%Y %W %w")
> datetime.datetime(2016, 12, 25, 0, 0)
0 reports that he selects the Sunday of that week, but you can change this between 0 and 6 for each day.
source
share