We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Date Select inside Forms

How Do I create an form element to select date?



11.2k

You can use the date element. It will create an <input type="date" /> tag. Beware that it may not work with all browsers. I would recomend you to use a javascript library...

Date Element Object : http://docs.phalcon.io/en/latest/api/Phalcon_Forms_Element_Date.html

jQuery Datepicker : http://jqueryui.com/datepicker/



31.0k
Accepted
answer

You can use the date element. It will create an <input type="date" /> tag. Beware that it may not work with all browsers. I would recomend you to use a javascript library...

Date Element Object : http://docs.phalcon.io/en/latest/api/Phalcon_Forms_Element_Date.html

jQuery Datepicker : http://jqueryui.com/datepicker/

very true. Date Element Object not working in firefox so I agree in using Jquery datepicker