Help with the date and time tutorial


#1

from datetime import datetime
now = datetime.now()
print "The time and date is %s/%s/%s %s:%s:%s" % (now.month, now.day, 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?


#2

HI just remove this part in the string

"The time and date is .."

#3

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


#4

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