in reply to compare dates
Best way to compare dates is probably to format them like YYYYMMDD. That way you can compare them numerically.
You can convert your date into this format like this:
$std_date = sprintf('%04d%02d%02d', (split m|/|, $date)[2, 1, 0]);
And I'm betting there's an Informix function that returns dates in a very similar format.
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: compare dates
by extremely (Priest) on Jan 15, 2001 at 01:59 UTC |