Home >>Python Programs >Python program to get current date
In this example, we will see a Python program through which we can get the current date.
We will follow these steps in this program to get the current date:
# Python program to get current date
# importing the date class
# from datetime module
from datetime import date
# getting the current date
current_date = date.today()
# printing the date
print("Current date is: ", current_date)