Answers for "python change format of datetime"

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

Code answers related to "python change format of datetime"

Python Answers by Framework

Browse Popular Code Answers by Language