| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
news_archive.tpl - DATE FORMAT | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Hi guys,
Can anyone please be so kind to let me know how I can change the date format that displays on my newsletter on storefront. Currently the date format looks like this 27-03-2010 I would like for it to display like this Mar-2010 My guess is to edit news_archive.tpl Mine looks like this: {* $Id: news_archive.tpl,v 1.5.2.1 2007/11/29 11:35:34 ferz Exp $ *} {if $news_messages eq ""} {$lng.txt_no_news_available} {else} {section name=idx loop=$news_messages} {capture name=dialog} <b>{$news_messages[idx].subject}</b> <br /><br /> {if $news_messages[idx].allow_html eq "N"} {$news_messages[idx].body|replace:"\n":"<br />"} {else} {$news_messages[idx].body} {/if} {/capture} {include file="dialog.tpl" title=$news_messages[idx].date|date_format:$config.Appearance.date_format content=$smarty.capture.dialog extra='width="100%"'} <br /> {/section} {/if} Any help would be greatly appreciated Thanks |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() It says it right here: date_format:$config.Appearance.date_format
Either change the date format in admin settings or date_format:"%b - %Y" You can refer to this http://www.smarty.net/manual/en/language.modifier.date.format.php
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#3
|
|||||||||
|
|||||||||
![]() Thanks Steve - You're the Man! I knew I saw it somewhere, was not sure where
Quote:
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|