Date Time Grand Finale


#1

I cannot find the mistake.
The output is what needs to be, but cannot move forward.
Please advise!

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)


#2

Hi @ivanovai,

The date needs to be delimited by forward slashes, which are the / character. You used the \ character instead.


#3

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