0

I am trying to set the date format of the date picker element, but I can't get it to work. How do you set the date format of a ZendX_JQuery_Form_Element_DatePicker element?

Solution:

Strange...I tried my original code sample again, and it worked.

$element = new ZendX_JQuery_Form_Element_DatePicker('date', array(
    'jQueryParams' => array(
        'dateFormat' => 'yy-mm-dd' //displays: 2010-01-26
    ),
));
Community
  • 1
  • 1
Andrew
  • 227,796
  • 193
  • 515
  • 708

1 Answers1

1
$element = new ZendX_JQuery_Form_Element_DatePicker('date', array(
    'jQueryParams' => array(
        'dateFormat' => 'yy-mm-D'
    ),
));
SMka
  • 3,021
  • 18
  • 14
  • hmm strange...I tried my original code sample again and it worked just fine. Also, your format ('yy-mm-D') results in '2009-21-Mon'. – Andrew Dec 21 '09 at 19:18