We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 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');