{strip}
  {if $VALUE}
    {assign var=tzo value=""}
    {if $apply_timezone_offset == "yes"}
      {assign var=tzo value=$ACCOUNT_INFO.timezone_offset}
    {/if}
    {if $display_format == "yy-mm-dd" || !$display_format}
      {$VALUE|custom_format_date:$tzo:"Y-m-d"}
    {elseif $display_format == "dd/mm/yy"}
      {$VALUE|custom_format_date:$tzo:"d/m/Y"}
    {elseif $display_format == "mm/dd/yy"}
      {$VALUE|custom_format_date:$tzo:"m/d/Y"}
    {elseif $display_format == "M d, yy"}
      {$VALUE|custom_format_date:$tzo:"M j, Y"}
    {elseif $display_format == "MM d, yy"}
      {$VALUE|custom_format_date:$tzo:"F j, Y"}
    {elseif $display_format == "D M d, yy"}
      {$VALUE|custom_format_date:$tzo:"D M j, Y"}
    {elseif $display_format == "DD, MM d, yy"}
      {$VALUE|custom_format_date:$tzo:"l M j, Y"}
    {elseif $display_format == "dd. mm. yy."}
      {$VALUE|custom_format_date:$tzo:"d. m. Y."}
    {elseif $display_format == "datetime:dd/mm/yy|h:mm TT|ampm`true"}
      {$VALUE|custom_format_date:$tzo:"d/m/Y g:i A"}
    {elseif $display_format == "datetime:mm/dd/yy|h:mm TT|ampm`true"}
      {$VALUE|custom_format_date:$tzo:"m/d/Y g:i A"}
    {elseif $display_format == "datetime:yy-mm-dd|h:mm TT|ampm`true"}
      {$VALUE|custom_format_date:$tzo:"Y-m-d g:i A"}
    {elseif $display_format == "datetime:yy-mm-dd|hh:mm"}
      {$VALUE|custom_format_date:$tzo:"Y-m-d H:i"}
    {elseif $display_format == "datetime:yy-mm-dd|hh:mm:ss|showSecond`true"}
      {$VALUE|custom_format_date:$tzo:"Y-m-d H:i:s"}
    {elseif $display_format == "datetime:dd. mm. yy.|hh:mm"}
      {$VALUE|custom_format_date:$tzo:"d. m. Y. H:i"}
    {/if}
{/if}{/strip}