Date & Time#6, The Grand Finale


#1

Where is the mistake?
Here is my code-

from datetime import datetime
now = datetime.now()

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


#2

Check your variables (now.month etc)again,that are going to set inside the strings.(using formatters)


#3

ok thanks, i really appreciate that


#4

​​​​​​​​​​​​​​:thumbsup:


#5

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