code: protected function isDateAttribute($field, $record)
      {
          if (empty($this->dates)) {
              return in_array($this->modelKeyForField($field, $record), $record->getDates(), true);
          }
  
          return in_array($field, $this->dates, true);
      }
docs: Is this resource key a date attribute?
  
  @param $field
  @param Model $record
  @return bool