public function date($date = null, $format = null) { if ($date === null) { return $this; } return Bbx_Date::date($date, $format); }
public function year() { return Bbx_Date::date($this->start(), 'Y'); }
protected function _stringifierCallback($matches) { $key = substr($matches[0], 1); $schema = $this->schema(); if (@$schema[$key]['type'] === 'date') { return Bbx_Date::date($this->{$key}); } return $this->{$key}; }