You are here: Re: [SMARTY] dates with smarty? « Smarty Templates Posts « IT news, forums, messages
Re: [SMARTY] dates with smarty?

Posted by DC on 09/30/29 11:23

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
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация