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