[SOLVED] Calendar Date Format

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
charleyhankins
Forum Members
Forum Members
Posts: 28
Joined: Tue Oct 09, 2007 4:33 pm

[SOLVED] Calendar Date Format

Post by charleyhankins »

Hi. I'm running CMS Made Simple 1.3.1. I'm using PHP 4, and MySQL 4.1. with Apache running on Linux

I'm using Calendar ver. 0.8.2

I need to change the date format from 22 July, 2008 to July 22, 2008.  As I have researched the forum I have discovered many conflicting answers.  I have applied them with no success.

I have both the list template set to:  date_format:"%A, %B %e, %Y"
and my tag: {cms_module module="Calendar" category="lunch" display="list" limit="1" dateformat=" %A, %B %e, %Y"}

Since there are so many posts on this forum addressing this particular issue, could one of the admins please  post a workable solution as a sticky post, so that new users could easily find the solution to this common issue?

examples:

This forum says to modify the template:  http://forum.cmsmadesimple.org/index.php/topic,20832.msg101311.html#msg101311

This forum says to modify  the tag: http://forum.cmsmadesimple.org/index.php/topic,2966.msg16453.html#msg16453
and further down says to modify both.

Thanks,
CH
Last edited by charleyhankins on Sun Jul 20, 2008 10:37 pm, edited 1 time in total.
charleyhankins
Forum Members
Forum Members
Posts: 28
Joined: Tue Oct 09, 2007 4:33 pm

Re: Calendar Date Format

Post by charleyhankins »

I would still like to know the actual correct modifications.  But, if it will help anyone else out, I succeeded by changing the first section from this:

{$lang.date}: {$event.event_date_start|date_format:"%e"}
{$month_names[$month_number]} {$event.event_date_start|date_format:"%Y"}


to this:

{$lang.date}: {$event.event_date_start|date_format:"%A, %B %e, %Y"}



I hope that helps someone else.
Cheers,
CH =D
User avatar
tonypb
Forum Members
Forum Members
Posts: 104
Joined: Tue Nov 20, 2007 12:16 am

Re: [SOLVED] Calendar Date Format

Post by tonypb »

;D thanks - i needed this solutions
patino-burch design
Anthony Patino-Burch
Post Reply

Return to “CMSMS Core”