Reply to Re: [SMARTY] dates with smarty?

Your name:

Reply:


Posted by Joe Stump on 10/15/72 11:23

As long as you're nut running Smarty in any kind of secure mode, all
of the regular PHP functions should be available to you. So you
should be able to run checkdate(), etc. any any of the other date
functions from PHP without any issues. If that doesn't work you might
have to roll your own smarty plugin.

PHP date functions: http://us3.php.net/manual/en/function.checkdate.php



--Joe

On Aug 8, 2005, at 12:27 PM, Amanda Hemmerich wrote:

> 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
>
>

--
Joseph C. Stump
joe@joestump.net
http://www.joestump.net

[Back to original 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

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