Why does this not work


#1


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?


#2

The problem is you are using the wrong slashes,

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

/


#3

Thanks sooo much. Got it know


#4

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