Re: [SMARTY] how can I make a timestamp a date
| From: | messju mohr | Date: | Tue, 15 Jul 2003 21:56:44 +0000 |
| Subject: | Re: [SMARTY] how can I make a timestamp a date | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9896@lists.php.net to get a copy of this message | ||
see http://smarty.php.net/manual/en/language.modifier.date.format.php
for example: {$time|date_format:"%d.%m.%Y | %H:%M"}
note: you have to use strftime's format, not date's.
HTH
messju
On Tue, Jul 15, 2003 at 11:47:05PM +0200, Florian Winkler wrote:
> Hi
> in PHP i would solve it in this way :
>
> while($row = mysql_fetch_array($qry))
> {
> $time = date("d.m.Y | H:i",$row['timestamp']);
> }
>
> how can I realize this in a template
>
> greetz
> fLo
>
> PS: I use section to loop the array
>
> _________________________________________________________________
> Fotos - MSN Fotos das virtuelle Fotoalbum. Allen Freunden zeigen oder
> einfach online entwickeln lassen:
> http://photos.msn.de/support/worldwide.aspx
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php