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