in reply to
Comparing Dates With a Twist
Date::Manip
has what you need : DateCalc to perform the comparison and ParseDate to merge the fields into one coherent date.
Comment on
Re: Comparing Dates With a Twist (boo)
In Section
Seekers of Perl Wisdom