how to get the max datetime python code example Example: find first date python oldest = min(datetimes)