May I ask for this example given for Specificity of error message, why is 2021-13-28 considered as a format error, and not an invalid input? Shouldn't format error be related only to the format of the input, i.e. YYYY-MM-DD, meaning an input such as 2021/02/30 is a format error but not an invalid input, since the format is wrong but it is a valid date?
May I ask for this example given for
Specificity of error message
, why is2021-13-28
considered as a format error, and not an invalid input? Shouldn't format error be related only to the format of the input, i.e.YYYY-MM-DD
, meaning an input such as2021/02/30
is a format error but not an invalid input, since the format is wrong but it is a valid date?