X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   formating date in tpl file? (https://forum.x-cart.com/showthread.php?t=1196)

ryan 01-16-2003 01:11 PM

formating date in tpl file?
 
I have a date in Unix time stamp form stored in a paramXX field in the products table. I need to display this in "mm/dd/yyyy" format on the page. This is easy enough to do in PHP using "date("m/d/Y", $theTimeStamp)" but I have come to find this doesn't work in a tpl file.

Any clue how I can get it to work? Do I need do a include of a php file and pass the value to it?? Any help would be appriciated.

thanks
Ryan

ryan 01-16-2003 01:33 PM

Hey I know, use "date_format"

http://smarty.php.net/manual/en/language.modifier.date.format.php


All times are GMT -8. The time now is 08:56 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.