/** * Valid date * * Default format is given by the current user language settings. * * @see #513 */ public function date($format = NULL) { if (is_null($format)) { $format = $this->platform->getDateFormat(); } $template = array('valid_date', array($format)); return $this->addToChain(__FUNCTION__, $template, $format); }