public function __construct($datetime = NULL, $format = '') { parent::__construct(); $this->separator = Manager::getOptions('separatorDate'); $this->format = $format ?: Manager::getOptions('formatDate'); $this->datetime = MKrono::getDateTime($datetime, $this->format); }