Re: Issue saving the dateelement
| From: | Mark Steudel | Date: | Tue, 05 Oct 2010 18:02:21 +0000 |
| Subject: | Re: Issue saving the dateelement | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-30750@lists.php.net to get a copy of this message | ||
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@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@gmail.com
. : Work : .
http://www.mindfulinteractive.com
. : Play : .
http://www.steudel.org/blog