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