Added yearRange to Date snippet
Added check if task exists in storeDocument