I apologize in advance for not understanding the underlying ways perl works. I'm just trying to keep it simple! Given the following:
my $string1 = localtime(time);
my $date1 = ParseDate($string1);
my $string2 = iwpt_dcr_value('alerts.ExpireDate');
my $date2 = ParseDate($string2);
my $flag = Date_Cmp($date1, $date2);
The comparison doesn't work properly. Why? Well I discovered that $date2 never receives a value.
$string1 = Tue Jan 23 08:29:09 2007
$date1 = 2007012308:29:09
$string2 = 12-17-2006
$date2 = empty
Am I using the ParseDate and/or Date_Cmp functions incorrectly?
-Dave