public function crudFormatValueDate($val, $args = [])
    {
        if (is_int($val)) {
            return date($args['format'] ?? 'd.m.Y', $val);
        } elseif ($val instanceof \Carbon\Carbon) {
            return $val->format($args['format'] ?? 'd.m.Y');
        }
    }
public function crudFormatValueDate($val, $args = [])
    {
        if (is_int($val)) {
            return date($args['format'] ?? 'd.m.Y', $val);
        } elseif ($val instanceof \Carbon\Carbon) {
            return $val->format($args['format'] ?? 'd.m.Y');
        }
    }
public function crudFormatValueDate ( $ val , $ args = [ ] ) { if ( is_int ( $ val ) ) { return date ( $ args [ 'format' ] ?? 'd.m.Y' , $ val ) ; } elseif ( $ val instanceof \ Carbon \ Carbon ) { return $ val -> format ( $ args [ 'format' ] ?? 'd.m.Y' ) ; } }
Format date from timestamp or Carbon instance.

@param $val
@param array $args
Format date from timestamp or Carbon instance .