Date Format Help

Phoca Cart - complex e-commerce extension
TechMistress
Phoca Enthusiast
Phoca Enthusiast
Posts: 54
Joined: 27 May 2015, 21:24

Date Format Help

Post by TechMistress »

Is there a place in administrator to change the date and time format, or is this done through the various files by hand?

Thanks!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48714
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Date Format Help

Post by Jan »

Hi, it depends on which date format do you ask. If the data is stored into database, then all data get the same format (database format).

If they are displayed e.g. in frontend, depends on which part, e.g. the Joomla! "DATE_FORMAT_LC2" is used in ask a question form:

Code: Select all

<?php echo JHtml::_('date',  gmdate('Y-m-d H:i:s'), JText::_( 'DATE_FORMAT_LC2' )) ?>
Jan
If you find Phoca extensions useful, please support the project
Post Reply