Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Format date in volt

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



3.8k
Accepted
answer


8.3k

It's also possible to add functions to volt

# In view->registerEngines

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