Corrected date parsing; Optimized varType calcs