I tries many other codes but doesn't work for any of them


#1

I am having the same problem , my code is :-
from datetime import datetime
now = datetime.now()
print '%s/%s/%s %s:%s:%s' % (now.month,now.day,now.year,now.hour,now.minute,now.second)
i tries many other codes but doesn't work for any of them but i think this is supposed to be correct


Grand finale . i need help
#2

you need spaces after the comma:
now.hour, now.minute, now.second


#3

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