Here is the code to print the current date and time in Python
from datetime import datetime print datetime.now().strftime('%Y-%m-%d %H:%M:%S')
Tutorialshore
Here is the code to print the current date and time in Python
from datetime import datetime print datetime.now().strftime('%Y-%m-%d %H:%M:%S')