Answers for "python change value to datetime 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

Code answers related to "python change value to datetime format"

Python Answers by Framework

Browse Popular Code Answers by Language