How to change date format
DJ-Classifieds uses the PHP date format.
The default date format is:
Y-m-d H:i:s
![](/templates/yootheme/cache/1e/defaulttimeformat-1e60ae55.png)
It means that the date displays in 24h format with the order:
Year-month-day Hours:minutes:seconds
To change date format:
- Open DJ-Classifieds settings.
- Go to "Dates" tab.
- Change date format
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, small h indicates that we want to display 12-hour format of an hour with leading zeros).
Open your DJ-Classifieds control panel. Navigate to "Options" and open "Dates" tab.
Apply this syntax in DJ-Classifieds component's options, and the date format change is ready.
![](/templates/yootheme/cache/2b/dateformat-2ba4e46a.png)
![](/templates/yootheme/cache/a7/changedtimeformat-a7e02dee.png)