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