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)
-   -   news_archive.tpl - DATE FORMAT (https://forum.x-cart.com/showthread.php?t=53024)

Dan.roh 03-27-2010 12:52 AM

news_archive.tpl - DATE FORMAT
 
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

cflsystems 03-27-2010 05:42 AM

Re: news_archive.tpl - DATE FORMAT
 
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

Dan.roh 03-27-2010 01:11 PM

Re: news_archive.tpl - DATE FORMAT
 
Thanks Steve - You're the Man! I knew I saw it somewhere, was not sure where

Quote:

Originally Posted by cflsystems
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



All times are GMT -8. The time now is 02:15 PM.

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