local 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 local date time
import pytz
datetime.datetime.now(pytz.timezone('Europe/Rome'))