Answers for "get date from datetime in pyhton"

26

datetime python

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

Code answers related to "get date from datetime in pyhton"

Python Answers by Framework

Browse Popular Code Answers by Language