Home arrow How Do I? arrow How to change the Joomla date format
How to change the Joomla date format  E-mail
 

 
This applies to Joomla 1.0.13 and 1.5
 
When Joomla is installed, it shows dates in a European format. 

For example, look at the date in the screen shot below:

ss_date_1.gif

Depending on where in the world you are, you may want the dates to be in a different format.  Joomla can format them any way you want, but the date format is "hidden" in the "language file."

Here's how to change it.  Let's change the date to an American format:  December 25, 2008

First of all, go to the Joomla Language Manager.

ss_date_2.gif

Select your language:  English (probably)

ss_date_3.gif

Thsi will load the language file in your editor.  Joomla uses this file to keep the words and phrases that it uses, but it also keeps the date codes in there, too.

 

Scroll down until you see these lines:

ss_date_4.gif

You want to change the line to look like this:

ss_date_5.gif

Note that I changed the %B (which writes the full month name) to be before the %d (the day date).   Save that and then check your site.

You will see that the date format has changed to an American format.

ss_date_6.gif

To see a list of all of the date format options in php, go to this link: http://us2.php.net/strftime/.

 

 

   
Quote this article in website
Favoured
Print
Send to friend
Save this to del.icio.us

Users' Comments  RSS feed comment
 

Average user rating

   (0 vote)

 

Display 1 of 1 comments

Different for my Joomla 1.5.0

By: Klaus Stafto (Guest) on 12-02-2008 19:13

Different for my Joomla 1.5.0

By: Klaus Stafto (Guest ) on 12-02-2008 19:13

This is different for my Joomla 1.5.0. "Language Manager" is not placed under "Site" menu, but "Extensions" menu. The language is not clickable in my Language Manager, so I can't edit it from there. 
 
My solution was editiing the language settings file directly: 
/language/nb-NO/nb-NO.ini 
 
The line that formats ordinary articles is: 
 
DATE_FORMAT_LC2=%A %d. %B %Y %H:%M

 

» Report this comment to administrator

» Reply to this comment...

Display 1 of 1 comments



Add your comment
Name
E-mail
Title  
 
Comment
 
Available characters: 600
   Notify me of follow-up comments
  Mathguard security question:
GNI         5        
  2    Y    3 8   AKL
ATW   64F   EJ7      
  2    4      F   IID
TAT           D      
   
   



mXcomment 1.0.6 © 2007-2008 - visualclinic.fr
License Creative Commons - Some rights reserved
< Prev   Next >
Free Joomla Templates