Write a Python program to display current time and date. Python date time

 Print current date and time using python. 

 
 
 
import datetime

now = datetime.datetime.now()
print ("Current date and time")
print(now.strftime("%Y-%m-%d %H:%M:%S"))


 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Post a Comment (0)
Previous Post Next Post