Yii 1.1: jquery-datetime-picker

Jquery Datetime Picker

Yii has only Date Picker but doesn't have datetime picker or timepicker. the initialization of the widget is similar to CJuiDatePicker. I've borrow the same concept in CJuiDatePicker

I've created this extension because most of the existing widget are already outdated especially the 'mobile device slideAccess features'.

this widget support:

  1. jquery ui themes or custom theming.
  2. localization.
  3. model binding support.
  4. slideAccess (mobile support), see the project page url.
  5. datetime/time picker.


Yii 1.1.x or above


extract the files under protected/extensions folder

    'type'=>'datetime', // available parameter is datetime or time
    //'language'=>'de', // default to english
    //'themeName'=>'sunny', // jquery ui theme, file is under assets folder
        // put your js options here check http://trentrichardson.com/examples/timepicker/#slider_examples for more info


Total 2 comments

#18723 report it
oligalma at 2014/12/17 06:51pm
doesn't work

I added this widget to my application but only appears a textfield instead of a calendar. When I click the textfield doesn't show any calendar.

#17718 report it
juszrnt at 2014/07/17 07:26am
Cannot get it to work

I get this error (JS console):

**Uncaught TypeError: Cannot read property 'timepicker' of undefined jquery-ui-timepicker-addon.js:20 (anonymous function) jquery-ui-timepicker-addon.js:20 (anonymous function)

GET http://localhost/js/jquery-ui.min.js 404 (Not Found)

Uncaught TypeError: Object [object Object] has no method 'datetimepicker' index.php?r=project/update&id=6:107 (anonymous function) index.php?r=project/update&id=6:107 fire jquery.js:974 self.fireWith jquery.js:1084 jQuery.extend.ready jquery.js:406 DOMContentLoaded**

Leave a comment

Please to leave your comment.

Create extension