Issue saving the dateelement
| From: | zia mohaddes | Date: | Tue, 05 Oct 2010 16:51:38 +0000 |
| Subject: | Issue saving the dateelement | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-30749@lists.php.net to get a copy of this message | ||
Hello everyone,
I am currently using the date element in quickform as follows:
$this->dateOptions = array(
'language' => 'en',
'format' => 'dMy',
'minYear' => $startYear +6,
'maxYear' => $startYear,
'addEmptyOption' => true,
'emptyOptionValue' => null
);
$this->form->addElement("date","a_field","label",$this->dateOptions);
However I have issues saving the date! But strangely when I modify the date
'format' to 'dMY' it works fine!
Any reason why??
Thank