/** * formats the date accordingly * * @param value */ function setValue($value) { $this->_timestamp = new Timestamp(); $dateTimeParts = explode(" ", $value); $dateParts = explode("/", $dateTimeParts[0]); $timeParts = explode(":", $dateTimeParts[1]); $this->_timestamp->setDay($dateParts[0]); $this->_timestamp->setMonth($dateParts[1]); $this->_timestamp->setYear($dateParts[2]); $this->_timestamp->setHour($timeParts[0]); $this->_timestamp->setMinutes($timeParts[1]); parent::setValue($value); return true; }