The datetime class has a method strftime. The Python docs documents the different formats it accepts:
- Python 2: strftime() Behavior
- Python 3: strftime() Behavior
For this specific example, it would look something like:
my_datetime.strftime("%B %d, %Y")