Avatar of team2005
team2005

asked on 

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

PHPHTML

Avatar of undefined
Last Comment
team2005
Avatar of Kiran Sonawane
Kiran Sonawane
Flag of India image

ASKER CERTIFIED SOLUTION
Avatar of Insoftservice inso
Insoftservice inso
Flag of India image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of team2005
team2005

ASKER

Thanks
PHP
PHP

PHP is a widely-used server-side scripting language especially suited for web development, powering tens of millions of sites from Facebook to personal WordPress blogs. PHP is often paired with the MySQL relational database, but includes support for most other mainstream databases. By utilizing different Server APIs, PHP can work on many different web servers as a server-side scripting language.

125K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo