Important Notice:

Course Content
The Calendar Module
Library Function/Predefined Functions
0/4
Sys Module
Library Function/Predefined Functions
0/2
OS Module
Library Function/Predefined Functions
0/2
Functions in Python (Chapter-10) M3-R5
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

error: Content is protected !!