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