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

Does Phalcon\Tag::dateTimeField() work correct ?

This code does not work in my simple volt:

<?php echo Phalcon\Tag::dateTimeField(array("startdate", "size" => 20, "maxlength" => 20, "type" => "datetime", "class" => "datepicker hasDatepicker", "id" => "startdate")); ?>

I mean it only shows text firld. Is this invocation correct ? This works fine:

<?php echo Phalcon\Tag::dateField(array("birthdate", "size" => 8, "maxlength" => 8, "type" => "date", "class" => "datepicker hasDatepicker", "id" => "birthdate")); ?>

This might the HTML5 date input field, support is not widespread in browsers atm. https://www.w3.org/TR/html-markup/input.date.html