max

fun max(dateA: Date?, dateB: Date?): Date?

Returns the greater of two dates.