How do I convert a datetime to date?

Use the date() method:

datetime.datetime.now().date()

Leave a Comment