Python Date and Time Help: I don't know what's wrong!


#1



https://www.codecademy.com/courses/python-beginner-en-zFPOx/0/4?curriculum_id=4f89dab3d788890003000096#


"Oops, try again. Your printed date doesn't seem to be in the proper format: mm/dd/yyyy."


Completion


Replace this line with your code. 
from datetime import datetime
now = datetime.now()

print '%s-%s-%s' % (now.year, now.month, now.day)


#2

So what needs to change, here?


#3

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