I just realized that your date is not in select boxes, so you could
actually just do

function getDate() {
$date = $this->getValue('date');
return new Zend_Date($startDate, "yyyy-MM-dd");
}


Whoa whoa, when creating a new Zend_Date object from a string, the second parameter is a string identifying how to parse the date passed in, _not_ the desired output format.
Yeah that's what it's doing, but I had a bug in there from copy and pasting.
\
It should read

function getDate() {
   $date = $this->getValue('date');
   return new Zend_Date($date, "yyyy-MM-dd");
}


This will read from the form and then convert to a date.



Reply via email to