Help for 3/6 on date and time

I am not sure what to do. Help???

Hi.

Please post your code so we can help you : )

Don’t worry, passed it now :smile:

what is wrong with this??? I dont get it!! uwahhh.
from datetime import datetime
now = datetime.now()
print ‘mm/dd/yyyy hh:mm:ss.’(now.hour, now.minute, now.second now.month, now.minute, now.second)
print ‘%s:%s:%s %s:%s:%s’ %

@sanjanavalluru

print ‘mm/dd/yyyy hh:mm:ss.’ doesn’t work, your importing datetime, it nows mm/dd/yy you just put in the strings separators and then the strings order after
like this

print ‘%s/%s/%s %s:%s:%s’ % (now.month, now.day, now.year, now.hour, now.minute, now.second)

from datetime import datetime
now = datetime.now()
print datetime.now()
now = datetime.now()
print now.year
now = datetime.now()
print now.month
now = datetime.now()
print now.day

1 Like

worked!!!

this is number 3

from datetime import datetime
print now.year
now =datetime.now()
print now
print now.month
print now.da

1 Like

I hate you so much you make me puke