in reply to Need help comparing 4 dates
I'm not sure why you say Date_Cmp doesn't recognize the date formats. Maybe because your test of $flag isn't doing what you think it should. $flag can be -1, 0 or 1. Your output suggests the same result whenever the dates for Bob and Jim are different, regardless of which is the earlier date, and something else when they are the same. You might try the test $flag > 0 and see if that gives you the result you are expecting.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Need help comparing 4 dates
by dirtdog (Monk) on Oct 03, 2010 at 03:37 UTC | |
by ig (Vicar) on Oct 03, 2010 at 04:22 UTC |