how to format datetime.now python code example
Example 1: python current date
from datetime import date
today = date.today()
print("Today's date:", today)
Example 2: python printing date
import datetime
print(datetime.datetime.now()) # --> (year, month, day, hour, minute, second, millisecond)