Help with the date and time tutorial


from datetime import datetime
now =
print "The time and date is %s/%s/%s %s:%s:%s" % (now.month,, now.year, now.hour, now.minute, now.second)

It says my date and time are not in the right format.
What am I doing wrong?


HI just remove this part in the string

"The time and date is .."


Oh my god thank you so much Ive been stuck for an hour.


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