Yii 1.1: ehtmldataselect

EHtmlDateSelect is a widget that creates date dropdowns.

This extension is a widget that creates date dropdowns. It can display any or all of year, month, and day.

Based on the Smarty function {html_select_date} http://www.smarty.net/manual/en/language.function.html.select.date.php



  • Yii 1.0 or above


  • Extract the release file under protected/extensions


See the following code example:

<?php $this->widget('application.extensions.EHtmlDateSelect',

Change Log

March 26, 2010

  • Fixed some errors

March 23, 2010

  • Initial release.

Total 7 comments

#13905 report it
Rajith R at 2013/07/05 03:16am
on update not selecting year

i used the extension to select only year. but in the update its not showing as selected if the year greater the 2000. its only working till 1999.

#6580 report it
Fan_Of_Yii at 2012/01/19 10:28am
Feb 2011 showing 31 days

Hi , Thanks for this extension . But in my test it is still showing 31 days for February month . Does it supposed to show based on the month and the year selected . Could you please advise or Am I doing some thing wrong ?

Thanks Yii Fan

#5707 report it
bkudrle at 2011/11/04 11:21am
Matching names

Small matter, but the name of the extension does not match the name of the extension directory.

Extension directory: ehtmldatAselect

Extension name: ehtmldatEselect

(capitalization added for emphasis)

#3687 report it
klod at 2011/04/28 05:37am

Very nice extention. I would recommand for next release to have:

'model' => $model, 'attribute' => 'birthdate',

instead of:

'time'=>$model->birthdate, 'field_array'=>'ItemsDate',

and a Behavour to recompose date onBeforeValidate

Nice job, thanks

#2671 report it
Dana at 2011/01/26 10:50am
Hook to model?

It would be very nice to see this hooked into a model and able to pull currently selected value from the model.

#2669 report it
Dana at 2011/01/26 10:35am
Very Handy =)

This was quite easy to implement and saves a lot of repitative 'grunt work', thanks!

#2092 report it
thinkt4nk at 2010/11/10 11:33am
Just what the dr ordered

Cool extension... just what I needed. Thanks!


Leave a comment

Please to leave your comment.

Create extension