RE: [SMARTY] Previous post

From: Date: Tue, 30 Sep 2003 17:38:32 +0000
Subject: RE: [SMARTY] Previous post
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10285@lists.php.net to get a copy of this message
Use the 'time' attribute to specify either: 1) a date in the format (yyyy-mm-dd) 2) or a timestamp The timestamp is probably the preferable way to do it, since you can re-use the value for html_select_time, if you using both on the same page. // code mysql_query('SELECT UNIX_TIMESTAMP('date_field') AS date_ts FROM table WHERE ...'); //... $smarty->assign("timestamp",$row['date_ts']); // template <% html_select_date time=$timestamp %> <% html_select_time time=$timestamp %> This is documented in the manual at: http://smarty.php.net/manual/en/language.function.html.select.date.php ---------------------------- Mark Priatel Iolog Web Communications http://www.iolog.com -----Original Message----- From: Raul Carvalho [mailto:raul.carvalho@prisma.pt] Sent: Tuesday, September 30, 2003 12:43 PM To: smarty-general@lists.php.net Subject: [SMARTY] Previous post On the previous post, the subject should read "html_select_date behaviour", sorry about that. Raul -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.smarty.general (#10285) next »