Grand Finale : Please Help!


my code :
from datetime import datetime
now =

print '%s/%s/%s %s:%s:%s' % (now.month,, now.year now.hour,now.minute,now.second)

I dont know what's wrong :confused:


Can you post your code in Preformatted text? it makes it easier to see any errors. :slight_smile:


You need to put a comma ( , ) in between now.year and now.hour.


Hey,I tried putting a comma but then I got an error saying : "Your printed date and time do not seem to be in the right format: mm/dd/yyyy hh:mm:ss "


Well can you post your code in Preformatted text?
(I asked that earlier)



Replace it with (because you need the day and not the date). let me know if that works. :slight_smile:


Hey. That worked. Thank you so much. I was stuck with this code since an hour. PHEW
Cheers! Good day!


That's great :smiley: Happy coding! :slight_smile:


:smile: Happy Coding to you too!


hey I have a doubt in the "NOT" part ,could you help?



I just found your post.


okay ,so could you help?


Yes, let me see what I can do.


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