I don't think I understand what you're asking. "yyyy" might be a format that a number needs to adhere to if it is represented by a
string, but the parameter in the method signature you showed is an int. Can you tell us the rule of what does and does not constitute a valid year?