I have a small problem with my date code. I would like the date to appear in Spanish add the date in Spanish.
The date is currently formatted like this: 2004/03/30
But I want the formatting to be like this: 04/21/2023
What I'm trying to do is display any date in Spanish, as follows: Viernes, 02 De Junio De 2023
Is there any way to do this?
The code I am using is the following:
from datetime import datetime, timedelta
s = '2004/03/30'
date = datetime.strptime(s, "%B")
modified_date = date + timedelta(days=1)
print(datetime.strftime(modified_date, "%B"))