I have a little problem !?


#1

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)


#2

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?


#3

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