How do I get datetime to stop showing seconds?

Marco Sulla Marco.Sulla.Python at gmail.com
Fri Oct 16 04:40:03 EDT 2020


Another way is:

'{:%Y-%m-%d %H:%M}'.format(d2)


More information about the Python-list mailing list