From: zia mohaddes on
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
From: Mark Steudel on
Can we see the output and see the code your using to save the data?
Are you getting errors or just invalid dates?

On Tue, Oct 5, 2010 at 9:51 AM, zia mohaddes <zia.simab(a)gmail.com> wrote:
> 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
>



--
-----------------------------------------
Mark Steudel
P: 425.298.7244
F: 206.260.3021
msteudel(a)gmail.com

.. : Work : .
http://www.mindfulinteractive.com

.. : Play : .
http://www.steudel.org/blog