How do I convert a datetime to date?
From the documentation:
datetime.datetime.date()
Return date object with same year, month and day.
Use the date()
method:
datetime.datetime.now().date()
From the documentation:
datetime.datetime.date()
Return date object with same year, month and day.
Use the date()
method:
datetime.datetime.now().date()