Combined dateLengthArr and getBody for-in loops