Python - How to import 'date' -- datetime

Import date

To import date, Add the following line to the top of your code.

from datetime import date

 

For more information about date:
datetime date