[Python] TypeError: descriptor 'isoformat' for 'datetime.date' objects doesn't apply to a...

Discussão em 'Python' iniciado por Stack, Abril 6, 2025.

  1. Stack

    Stack Membro Participativo

    I'm doing a university project in Python, I need to import from a JSON a string in the format of datetime.date that would be YYYY-MM-DD, I was testing in a short program and I had no problems, but when entering in my general code it gave me this error

    dt = date.isoformat(info["start_date"])

    Continue reading...

Compartilhe esta Página