I have a little problem !?


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)


Hi @pykhalid,

Check this format string ...

'%s-%s-%s %s:%s:%s'

... to compare it with the specifications provided by the instructions.

What character should delimit the components of the date?


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