http://qs321.pair.com?node_id=11117608


in reply to Find maximum (Activity) date from array hash.

A few things:

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics

Replies are listed 'Best First'.
Re^2: Find maximum (Activity) date from array hash.
by Sami_R (Sexton) on Jun 02, 2020 at 23:41 UTC

    Thank you CountZero

    Based on your notes, have used hippo's code with ISO date format (YYYY-MM-DD) and compared the date like

    $maxdate = $date if $date gt $maxdate;