Why does this not work


Hot date 4.

Your printed date doesn't seem to be in the proper format: mm/dd/yyyy.

It should work

from datetime import datetime
now = datetime.now()

print '%s\%s\%s' % (now.month, now.day, now.year)
#why is this not working?


The problem is you are using the wrong slashes,

You're supposed to use forward slashes, :slight_smile:



Thanks sooo much. Got it know


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