I have a string that returns as "2021-12-11/2021-12-14" or "2021-12-11" in the json response, and i'd like to validate that the field is in iso 8601 format.
i'm not sure how to do this; should i be parsing it and then comparing to YYYY-MM-DD
?
thanks in advance for any help i can get!