Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

days counter Project , needs help .

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
Tarek
Smarty Rookie


Joined: 07 Jan 2006
Posts: 5

PostPosted: Sat Jan 07, 2006 7:44 pm    Post subject: days counter Project , needs help . Reply with quote

hello :
i am trying to make an equavalent smarty code to this PHP code :

Code:
<? printf("%d",(time() - strtotime(DATE_STARTED)) /(60*60*24)); ?>


DATE_STADTED
Code:
define('DATE_STARTED','26 August 2005');


but when i tried to do this code with smarty , i got stuck , any suggestions ?[/php]
_________________
great hosts
Back to top
View user's profile Send private message Visit poster's website
::downtown::
Smarty Rookie


Joined: 20 May 2005
Posts: 33
Location: Berlin

PostPosted: Mon Jan 09, 2006 3:14 pm    Post subject: Reply with quote

{$time_stamp|date_format:""}

@see
http://smarty.php.net/manual/en/language.modifier.date.format.php
_________________
Erik Seifert
http://www.b-connect.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP