I am trying to find a way to convert a time string like "last Sunday" or "Next Monday" into DateTime format using python 3. I tried out using the follwoing:
x = datetime.strptime("Sunday", "%A")
but it gave a output like this:
1900-01-01 00:00:00
I want to know how to get the Date in relation to the current Date!
Thank you :)