In 2009 I made a note that Excel's main date parsing function was over 1000 lines of code -- not including helpers.