user94154 user94154 - 1 year ago 87
Ruby Question

Get the newest and oldest date from a list - Ruby

I have an array of Ruby Date objects. How can I find the newest datetime and the oldest datetime?

Answer Source
date_array.min # => Oldest
date_array.max # => Most recent
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download