Breadcrumbs

Top Menu

Content

How to change date format
How to change date format 4.3 out of 5 based on 16 votes.

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: http://php.net/manual/function.date.php

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.


Found this article interesting? Subscribe for more.
Subscribe to the Telegram bot
Subscribe to the Messenger Bot
Or share this article with your friends.
Wednesday, 30 January 2013 10:23
 
User Rating:  (16)
PoorBest
 

Buy

DJ-Classifieds

Ultimate classified ads solution for Joomla.

Learn more

Footer Menu