About Lesson
Date():-
The date() is a constructor of the date class. It takes three arguments: Year, Month and day.
|
import datetime d=datetime.date(2020,7,10) print(d) Output 2020-07-10 |
Important Notice:
The date() is a constructor of the date class. It takes three arguments: Year, Month and day.
|
import datetime d=datetime.date(2020,7,10) print(d) Output 2020-07-10 |