How to change date format in DJ-Classifieds custom fields
You can change the date format in extra fields in DJ-Classifieds.
Let’s add the custom field with a date.
For the sake of this tutorial, I’ll create the “Availability” custom field that will be used for showing the availability for the apartments.
Open DJ-Classifieds in back-end and click “Add field” and set:
![](/templates/yootheme/cache/e6/availableform-e6db05a1.png)
- Label name
- Tooltip description if you want to use one
- Type (I chose “Date” but you could also use “Date from-to” if it better fits your purpose)
- Date format in PHP format (if nothing entered it’ll use the default Y-m-d format) - in this tutorial I’ve used the date format: F j, Y, g: I a
NOTE: You can set more settings than I did. Learn more about adding custom fields - How to add a new extra field in DJ-Classifieds
Click Save.
Once saved you can assign the extra field to the chosen category
![](/templates/yootheme/cache/ba/extrafieldcat-baa54146.png)
Now the field was added to “Apartments” category.
Once adding the advert from front-end to this category, the date field will be displayed, and the user will be able to select the date from the regular calendar with an icon (1):
![](/templates/yootheme/cache/1c/dateformat-1c320fb8.png)
then select the date from the calendar (2), and the date will be displayed in the field (3).