Forums / Developer / year in ezdatepicker
Jonathan Clavier
Tuesday 12 July 2011 3:18:57 pm
Hello everyone, I use a calendar (ezdatepicker) to insert a date of birth, but it is very difficult for the user to select the year. He must click on the arrows of the calendar many times. Do you know how to change the calendar to display a drop-down list for years?
Damien Pobel
Wednesday 13 July 2011 4:52:35 am
Hi Jonathan,
you're right, the current calendar implementation is not very handy for your use case. Could you please open an enhancement request in the issue tracker ?
By the way, the datatype ezdate implementation stores the date with a timestamp, so it's limited to a date between the 1st january 1970 and somewhere in 2038 which can be inadequate for a date of birth. If you hit this limitation, you can use the birthday extension which doesn't have this limitation and also has another GUI to fill date (3 drop down selects).
Cheers
Damien Planet eZ Publish.fr : http://www.planet-ezpublish.fr Certification : http://auth.ez.no/certification/verify/372448 Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish
Hamdi Laadhari
Wednesday 13 July 2011 5:59:40 am
dpobel is right, avoid using ezdatepicker with a birthdate, cause it is stored as timestamp in the database.
Certified eZ Publish Entreprise 4.5 http://www.laadhari.fr