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

HTML5 "datetime"

There is a Form element type "Date" but HTML5 also supports "Datetime" which is the same calendar but also with the ability to pick a time of day. I don't see any Form element type "datetime" in the documentation - is this supported? Thanks!



58.4k
edited Jan '16

Hey man

You can try the code below:

echo Phalcon\Tag::dateTimeField(array("born", "value" => "14-12-1980"))

Also you can see the source to understand it https://github.com/phalcon/cphalcon/blob/master/phalcon/tag.zep#L663