Date and time programing problem


from datetime import datetime
now =

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

why it is showing wrong when i am trying to run it is showing error and even i tried every bit please suggest me if there is some mistake i have done


a comma (,) between now.year and now.hour is missing


thanx fir the help but i did it myself and it didnt required comma...bdw
thanku i will let you know if i face any problem...


you need to separate the variable with a ,

now.year now.hour


now.year, now.hour


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