how to only get date from datetime python code example Example: convert datetime to date python datetime.datetime.now().date()