If format with an invalid moment then expect !finite
Fix leftPadZero to only pad finite numbers