Question: Assume that we have a string like:XYYX. I want to get YXXY.How do I do that in python?

couldnt think of anything

Answer: 
Future dates are supported by datetime.strptime. Here, you're trying to convert a date with 16 months which is leading to the error. I'm guessing you're looking for

```
datetime.strptime("2022-11-16", "%Y-%m-%d")

```
```
datetime.strptime("2022-11-16", "%Y-%d-%m")

```

That format string is year-day-month, but you're passing a date string of year-month-day. So it tried to interpret 16 as the month.

Your second example happened to work because it had 12 for the month.