How to convert to datetime value in python code example Example: convert datetime to date python datetime.datetime.now().date()