Answers for "change python date format"

0

python change format of datetime

now = datetime.now()
time_string = now.strftime("%Y-%m-%d %H:%M:%S")
print(time_string)
Posted by: Guest on July-11-2021

Python Answers by Framework

Browse Popular Code Answers by Language