A Date With the Datetime Module in Python | Part - 1
We can extract current date using two classes.
Using date class
from datetime import date
today = date.today()
Using datetime class
from datetime import datetime
today = datetime.today()
OR
from datetime import datetime
now = datetime.now()
...
coding.sahilfruitwala.com1 min read