Convert 20 Apr 2022 to 2022-04-20 using python3

Given a string like this:

20 Apr 2022

How do I convert it to:

2022-04-20

Using python 3?

Back to Top