Wednesday, 30 January 2013 10:23
Modified: Tuesday, 11 October 2016 11:11

how to change date format

DJ-Classifieds uses PHP date format.

You can change the settings of the date format in options.

The default date format is: 

Y-m-d H:i:s

(on screenshot below you can see how it looks like by default) - it means that the date displays in 24h format with the order :

Year-month-day Hours:minutes:seconds

You can find out the syntax of the date format here:

For example let's change the date format to look like:

month-day-year hours:minutes:seconds

and to be in 12h format

Checking the above PHP manual the syntax for this should be:

m-d-Y h:i:s a

(a indicates that we want to display am/pm parameter).

Apply this syntax in DJ-Classifieds component's options and the date format change is ready.



Ultimate classified ads solution for Joomla.

Learn more