Is there a shorter way in ruby to get the later of two dates? January 4, 2024 by Tarik Use Enumerable#max: latest_date = [date1, date2].max