Page 1 of 1

[SOLVED] Calendar Date Format

Posted: Sun Jul 20, 2008 9:47 pm
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

Re: Calendar Date Format

Posted: Sun Jul 20, 2008 10:36 pm
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

Re: [SOLVED] Calendar Date Format

Posted: Tue Sep 09, 2008 3:11 pm
by tonypb
;D thanks - i needed this solutions