We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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 : https://docs.phalcon.io/en/latest/api/Phalcon_Forms_Element_Date.html

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



31.2k
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 : https://docs.phalcon.io/en/latest/api/Phalcon_Forms_Element_Date.html

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

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