New answers tagged

0

You can implement template_preprocess_field() and alter the markup of the date field. function MY_THEME_preprocess_field(&$vars) { if ($vars['field_name'] === 'field_custom_date_field') { $date_format = 'short'; // You need to provide the machine name of the format you want. $timestamp = strtotime($vars['element']['#items']->value); $...


Top 50 recent answers are included