Another way is:

'{:%Y-%m-%d %H:%M}'.format(d2)
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to