Something wrong with the format of my datetime


it shows that my format of the print date is wrong. Why?

Replace this line with your code.



Please, post well formatted < / > code tried. This link will not redirect to yours.

Thank you! :slight_smile:


try this
from datetime import datetime
now =

print ('%s/%s/%s %s:%s:%s') %(now.month,, now.year,now.hour,
now.minute, now.second)


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.