Changing date format of custom field

More
11 years 2 months ago #56899 by Steve
Hi,

I have added a custom field of type "date" and applied it to all categories. However, this "date" field shows a calandar date picker (great), but then inputs the date in this format:
2015-01-22

That is yyyy-mm-dd I believe.

Either way, that's not usually how we read dates and I would really like this to be:
dd-mm-yyyy
22-01-2015

I can change the date format in the configuration but this seems to only apply for events, rather than custom fields.
Is there an easy way to change this?

I am using version: 1.6.6

Thanks,

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #56913 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Changing date format of custom field
Hi Steve

Unfortunately, for DateTime custom field, we will have to use the fixed format YYYY-MM-DD. It is not possible to use custom format yet due to some limitation of Joomla core Calendar custom field at the moment

I will try to address this issue in the future

Tuan

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #57780 by Skitter
Replied by Skitter on topic Changing date format of custom field
Hi Tuan,

I have this same issue. The format is not common in our country and visiters of the site have problems with it. I Googled a bit and found this: docs.joomla.org/Calendar_form_field_type to change to format of the core-calendar.

It it possible to hard-code it somewhere in your component?

We love Event Booking, keep up the good work!

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #57826 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Changing date format of custom field
Hi

You can try to look at administrator/components/com_eventbooking\libraries\rad\form\field\date.php and try to change it to see how it works

Tuan

Please Log in or Create an account to join the conversation.

More
8 years 1 month ago #109464 by Wynand
Replied by Wynand on topic Changing date format of custom field
Any news of how to change this?

Please Log in or Create an account to join the conversation.

More
8 years 1 month ago #109469 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Changing date format of custom field
Hi

We support several custom format now. You can go to Events Booking -> Configuration, find the config option Date Custom Field Format and choose the best format for your need

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc