Answers for "current date format in python"

0

python print datetime

import datetime
print("Now:", datetime.datetime.now())
Posted by: Guest on August-23-2020
-1

get date and time python

from datetime import datetime
now = datetime.now()
print (now.strftime("%Y-%m-%d %H:%M:%S"))
Posted by: Guest on August-11-2020

Code answers related to "current date format in python"

Python Answers by Framework

Browse Popular Code Answers by Language