lib/recordCheck/data-check-date.js
function (fieldDefinition, fieldName) {
    const fieldType = propertyHelper.getFieldType(fieldDefinition);

    if (fieldType === 'date') {
      // This field is a date field. Create the checks
      return createDateChecks(fieldDefinition, fieldName);
    }
  }
function (fieldDefinition, fieldName) {
    const fieldType = propertyHelper.getFieldType(fieldDefinition);

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