[Python] Getting today's date in YYYY-MM-DD in Python?

Discussão em 'Python' iniciado por Stack, Setembro 29, 2024.

  1. Stack

    Stack Membro Participativo

    Is there a nicer way than the following to return today's date in the YYYY-MM-DD format?

    str(datetime.datetime.today()).split()[0]

    Continue reading...

Compartilhe esta Página