Optimized date parsing