BIrth date format in demographics block
The birth date in contact summary demographis block always uses "%E%f %B %Y" format.
In line 25 of civicrm/templates/CRM/Contact/Page/Inline/Demographics.tpl
{assign var="date_format" value=$fields.birth_date.smarty_view_format}
{if $birth_date}
{$birth_date|crmDate:$date_format}
{/if}
smarty_view_format
is always %E%f %B %Y, returned by CRM_Utils_Date::getDateFieldViewFormat
function.
Why {$birth_date|crmDate:crmDate}
is not simply used?
smarty_view_format
is then only used by civicrm/templates/CRM/UF/Form/Fields.tpl
, but I do not understand where I can see...
Maybe it is a legacy?
Edited by masetto