Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review

file Change date format

More
11 years 11 months ago #1391 by signe
Change date format was created by signe
Hi,

I am trying to change the date format for the module. As of now it shows "12 december 2012", but I want it to show "12.12.12".
I found these lines in the modules' template file, but editing it doesn't change anything:
if ($show_date == 'date') {
								$div_extra .= JHTML::_('date', $item->date, JText::_('DATE_FORMAT_LC3'));
							}

Am I missing something?:)

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #1392 by admin
Replied by admin on topic Re: Change date format
Hello,
what you have to do is to go into your Joomla! language file (example: en-GB.ini) and change the key DATE_FORMAT_LC3 to your liking. Note that this is not the perfect solution, as it can modify other extensions who use the same key.
What I would suggest is create another key and add it in the language manager overrides (assuming you have Joomla! 2.5+). Then replace the above key by the one you have created.

Olivier.

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #1393 by signe
Replied by signe on topic Re: Change date format
Perfect, thank you :-)

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #1394 by admin
Replied by admin on topic Re: Change date format
You are welcome :-)

Olivier.

Please Log in or Create an account to join the conversation.