Marco Sulla Fri, 16 Oct 2020 01:45:26 -0700
Another way is:
'{:%Y-%m-%d %H:%M}'.format(d2) -- https://mail.python.org/mailman/listinfo/python-list