write a Python program to display the current date and time
Answers
Answered by
2
Answer:import datetime
now = datetime.datetime.now()
print ("Current date and time : ")
print (now.strftime("%Y-%m-%d %H:%M:%S"))
Explanation:
Answered by
0
Answer:
Explanation:import datetime
now = datetime.datetime.now()
print ("Current date and time : ")
print (now.strftime("%Y-%m-%d %H:%M:%S"))
Similar questions
Environmental Sciences,
6 months ago
English,
6 months ago
English,
6 months ago
Social Sciences,
11 months ago
English,
11 months ago
English,
1 year ago
English,
1 year ago