Answers for "how to format datetime.now python"

32

python current date

from datetime import date

today = date.today()
print("Today's date:", today)
Posted by: Guest on April-15-2020
2

python printing date

import datetime
print(datetime.datetime.now()) # --> (year, month, day, hour, minute, second, millisecond)
Posted by: Guest on October-03-2020

Python Answers by Framework

Browse Popular Code Answers by Language