I have two dates, in the format YYYY-MM-DD, say ...
my $date1 = "2004-01-14"
my $date2 = UnixDate(ParseDate("today"),"%Y-%m-%d");
I'm trying to use Date_Cmp($date1, $date2) to get the difference in days (I don't care about hours, minutes, seconds, ..) but I keep getting back "1" as the result. Am I doing something wrong ?
I've also read that Date::Manip is a very big and slow module. Is there a better one to use for this type of calculation ?
As always, thanks in advance.