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.