library/Garp/Model/Behavior/Sluggable.php
protected function _getBaseStringFromDate(array $data, array $baseField) {
        $col = $baseField['column'];
        $format = $baseField['format'] ?: 'd-m-Y';
        if (!array_key_exists($col, $data)) {
            return '';
        }
        return date($format, strtotime($data[$col]));
    }
protected function _getBaseStringFromDate(array $data, array $baseField) {
        $col = $baseField['column'];
        $format = $baseField['format'] ?: 'd-m-Y';
        if (!array_key_exists($col, $data)) {
            return '';
        }
        return date($format, strtotime($data[$col]));
    }
protected function _getBaseStringFromDate ( array $ data , array $ baseField ) { $ col = $ baseField [ 'column' ] ; $ format = $ baseField [ 'format' ] ? : 'd-m-Y' ; if ( ! array_key_exists ( $ col , $ data ) ) { return '' ; } return date ( $ format , strtotime ( $ data [ $ col ] ) ) ; }
Get base string from date column.
@param Array $data
@param Array $baseField Base field config
@return String
Get base string from date column .