fix isNaN + zerofill dates