[performance] Faster date conversion