Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

formating date in tpl file?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-16-2003, 01:11 PM
 
ryan ryan is offline
 

Advanced Member
  
Join Date: Sep 2002
Location: Philly
Posts: 38
 

Default 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
Reply With Quote
  #2  
Old 01-16-2003, 01:33 PM
 
ryan ryan is offline
 

Advanced Member
  
Join Date: Sep 2002
Location: Philly
Posts: 38
 

Default

Hey I know, use "date_format"

http://smarty.php.net/manual/en/language.modifier.date.format.php
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:57 AM.

   

 
X-Cart forums © 2001-2020