How to format date in tpl-file

Hi!

Have the included source, that display the date field like -> 2011-10-05 -> $row.event_from_date
But how do i format the date field to display -> 05.10.2011 ?


<div style="padding-top:2px; padding-left: 6px; padding-bottom:2px; padding-right:4px;">
    <br /> 
	{foreach item=row from=$singeltr_data}
	    
		<span class="newshead_tilp"><b>{$row.event_title|stripslashes}</b></span><br/>
		<span class="newsdate">Startdato: {$row.event_from_date}</span><br />
		<a href='{$row.event_link}' >{lang mkey='more'}</a>
		
		<br/><br />
	{/foreach}

</div>

Open in new window

LVL 2
team2005Asked:
Who is Participating?
 
InsoftserviceConnect With a Mentor Commented:
{$row.event_from_date|date_format:"%d/%b/%Y"} will give you o/p  as 28/Sep/2011

{$row.event_from_date|date_format:"%d.%m.%Y"} will give you o/p  as 05.10.2011.
0
 
Kiran SonawaneProject LeadCommented:
0
 
team2005Author Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.