Re: [SMARTY] Datestamp in html??
| From: | Avern Williams | Date: | Mon, 01 Jul 2002 11:41:07 +0000 |
| Subject: | Re: [SMARTY] Datestamp in html?? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5121@lists.php.net to get a copy of this message | ||
Thank you both! I was on a Windows system and using strftime() in my php code (without "%D") worked great!
thanks again,
Avern
From: Andreas Kossmeier <andreas.kossmeier@bergfex.at> To: Avern Williams <avern@hotmail.com> CC: smarty-general@lists.php.net Subject: Re: [SMARTY] Datestamp in html?? Date: Mon, 01 Jul 2002 09:57:35 +0200 Avern Williams wrote:_________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspxI've tried putting <INPUT TYPE=HIDDEN NAME="dateposted" VALUE="{$smarty.now|date_format:"%D"}"> in my smarty template, but it gets hung (understandably) on the double quotes. I've also tried <INPUT TYPE=HIDDEN NAME="dateposted" VALUE="{$smarty.now|date_format:'%D'}"> but that didn't work either. Does anyone have any suggestions?http://www.php.net/manual/en/function.strftime.php : Note: Not all conversion specifiers may be supported by your C : library, in which case they will not be supported by PHP's strftime(). : This means that %T and %D will not work on Windows. -- andreas kossmeier bergfex.at - http://www.bergfex.at -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php