code: function (fieldDefinition, fieldName) {
      const fieldType = propertyHelper.getFieldType(fieldDefinition);
  
      if (fieldType === 'date') {
        // This field is a date field. Create the checks
        return createDateChecks(fieldDefinition, fieldName);
      }
    }
docs: Creates the date checks for a date field
  @param fieldDefinition The field_definition schema
  @param fieldName The name of the current field