Function to check if month is missing while year and day are non-missing (i.e. would be in the format of "yyyy---dd")
Useful links