10389 Posts in 2200 Topics by 1712 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 879 Views |
-
Event Calendar -> UpcomingEvents date format

21 September 2010 at 12:33pm
Hi. I'm having and issue trying to change the date format that the UpcomingEvents function displays from YYYY-MM-DD to MM-DD-YYYY. I've made the En-US localization changes in both the master and Event Calendar _config.php files. Dates and times now display properly throughout the site except for the UpcomingEvents function. Is there something I'm missing?
Thanks.
-
Re: Event Calendar -> UpcomingEvents date format

21 September 2010 at 1:29pm
You're using the $_Dates function?
When you say you made localization updates, what do you mean by that?
---------------
Silverstripe tips, tutorials, screencasts, and more. http://www.leftandmain.com -
Re: Event Calendar -> UpcomingEvents date format

21 September 2010 at 3:13pm
By localization I meant changing the date and time display to US format, using the functionality provided in the _config.php file in Event Calendar.
Here's an example of the code I'm using for UpcomingEvents:
<% control UpcomingEvents(5) %>
<li><a href="$Link">$EventTitle<small>$StartDate</small></a></li>
<% end_control %>Not sure if $StartDate is related to $_Dates... Pretty new to all this:) Thanks for the help.
-
Re: Event Calendar -> UpcomingEvents date format

24 September 2010 at 4:16am
Solved. The $_Dates function is what I needed.
| 879 Views | ||
|
Page:
1
|
Go to Top |

