from datetime.datetime take out only date code example Example: convert datetime to date python datetime.datetime.now().date()