Answers for "date number in python"

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
0

how to get date in numbers using python

from datetime import datetime
shortDate = datetime.today().strftime('%Y-%m-%d')
Posted by: Guest on May-27-2020

Code answers related to "date number in python"

Python Answers by Framework

Browse Popular Code Answers by Language