Files
medicalalert-web-reloaded/wp/wp-content/themes/medicalalert/helpers/DateFormatter.php
Tony Volpe 706f089d5e add theme
2024-06-18 16:47:10 -04:00

16 lines
288 B
PHP

<?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);
};
}
}