-1
Friends, I’m new in python and I’m trying to save a file that contains the date and time as the file name.
That’s my code, but it’s not working.
Where am I going wrong?
from datetime import date, datetime
data = datetime.today()
hoje = data.strftime('%d/%m/%Y')
nome = 'Consolidado.xlsx'
...
df.to_excel(f'{hoje}-{nome}', index = False)
Very good Giovanni. Something so simple. Thank you very much.
– MIZAEL PIRES DA SILVA