Answers for "datetime format change python"

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 "datetime format change python"

Python Answers by Framework

Browse Popular Code Answers by Language