initial commit
This commit is contained in:
15
helpers/DateFormatter.php
Normal file
15
helpers/DateFormatter.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace Helpers;
|
||||
|
||||
class DateFormatter
|
||||
{
|
||||
public static function monthDayYear()
|
||||
{
|
||||
return function ($template, $context, $args, $source) {
|
||||
$dateString = strtotime($context->get($args));
|
||||
|
||||
return date("M d, Y", $dateString);
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user