* @return object Date.
*/
function &getValue() {
- if ($this->_selectedDate['Y']) {
+
+ $date = parent::getValue();
+
+ if ($date['Y']) {
return new Date (@sprintf("%04d-%02d-%02d %02d:%02d:00",
- $this->_selectedDate['Y'], $this->_selectedDate['F'],
- $this->_selectedDate['d'], $this->_selectedDate['H'],
- $this->_selectedDate['i']));
+ $date['Y'], $date['F'],
+ $date['d'], $date['H'],
+ $date['i']));
} else {
return null;
}