I don’t know what is wrong with my code. Looking for help.
Sorry is solved. I was wrinting “datetime” all the time… I can’t delet post now!!
What was the final answer? I can’t figure it out…
I was wrinting:
now = datatime.now()
And it should be:
now = datetime.now()
I was writing “datetime” in the wrong way.
I kept doing the same thing! for some reason my hands wanted to type datatype.
here is how it supposed to look
from datetime import datetime
var = “now”
now = datetime.now()
print datetime.now()
datetime datetime importación
DateTime.Now print ()
ahora = DateTime.Now ()
print ahora
Is it the gap in the middle because I got this and it worked.
from datetime import datetime
now = datetime.now()
print now
I hope that you know that in python you do not have to declare the variable using var. I am a beginner please correct me if I am wrong.
from datetime import datetime
now = datetime.now()
print now
from datetime import datetime
now =“datetime.now()”
print now
It stil asks me if ı store the result of datetime.now() in the now variable. Where am ı making mistake?
from datetime import datetime
now=datetime.now()
print “%s/%s/%s %s:%s:%s”(now.month, now.day, now.year, now.hour, now.minute, now.second)
What’s wrong with this code could someone help please it’s supposed to give mm/dd/yyyy hh:mm:ss format
Well you don’t need the quotes!