Re: [SMARTY] dates with smarty?

DC <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
here's one simple way that could be prone to failure if the date string 
is malformed:

{if $Timing[record]|strtotime gte $clientaccesstimingstart|strtotime }

{/if}

Amanda Hemmerich had written:
> Is there a way to test dates in Smarty?  I want to test a date, and if 
> it fits a certain criteria (in the future and less than 2 months away), 
> display it differently (but within the same list, so using the same 
> query) than the other dates.
> 
> I did a search for dates on smarty.php.net and could only find stuff on 
> formatting dates.
> 
> Thanks!
> Amanda
> 

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.