Zend Framework - JQuery - Date Picker - Format Date to YYYY-mm-dd

前端 未结 4 1628
被撕碎了的回忆
被撕碎了的回忆 2021-01-23 15:56

Im using a JQuery DatePicker in a Zend Framework based application Form. Here is the code for the date picker

$this->addElement(\'datePicker\',\'movie_release         


        
4条回答
  •  余生分开走
    2021-01-23 16:40

    Try adding this to your array:

    'dateFormat' => 'yy-mm-dd',
    

    If you're still having trouble, see if you can upgrade to the most recent version of the control from jQuery UI's site. Here is usage documentation for date formats: http://jqueryui.com/demos/datepicker/#date-formats

提交回复
热议问题