converting date and time to date only in python code example Example: convert datetime to date python datetime.datetime.now().date()