get today string python code example
Example 1: print current date
from datetime import date
today = date.today()
print("Today's date:", today)
Example 2: get current date datetime
from datetime import date
today = date.today()
print("Today's date:", today)