We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Format date in volt

Hi all how to format datetime in volt same date('m-d-y',strtotime(obj)) in php



5.0k
Accepted
answer


13.8k

It's also possible to add functions to volt

# In view->registerEngines

$compiler = $volt->getCompiler();
$compiler->addFunction('strtotime', 'strtotime');