python convert date time to date code example Example: convert datetime to date python datetime.datetime.now().date()