Hi all how to format datetime in volt same date('m-d-y',strtotime(obj)) in php
It's in the docs ;)
https://docs.phalcon.io/en/latest/reference/volt.html#functions
{{ date('m-d-y', time()) }}
It's also possible to add functions to volt
# In view->registerEngines $compiler = $volt->getCompiler(); $compiler->addFunction('strtotime', 'strtotime');