Simplify max_date()
The built-in max function can take an iterable directly, no need to reimplement it.