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!



34.6k
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