SOLVED !!! Custom field date format dd-mm-YYYY

More
7 years 9 months ago - 7 years 9 months ago #83438 by Parcs
Hi,
I created a date type custom field . The date format is YYYY-mm-dd by default.
I really need to be dd-mm-YYYY, for is the standard date format in my country.
I have no problem in hardcoding if you give me the right instructions.
Thanks a lot.
Last edit: 7 years 9 months ago by Mr. Dam.

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

More
7 years 9 months ago #83537 by Nguyen Phu Quan
Replied by Nguyen Phu Quan on topic Custom field date format dd-mm-YYYY
Hi
You need to modify in file Root > administrator > components > com_jdonation > libraries > osf > form > field > data.php
Change the code " %Y-%m-%d " to " %d-%m-%Y "

Thanks
Quan

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

More
7 years 9 months ago - 7 years 9 months ago #83538 by Parcs
Replied by Parcs on topic Custom field date format dd-mm-YYYY
Perfect! Thank you very much.
Last edit: 7 years 9 months ago by Parcs.

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

Moderators: Mr. DamDũng Nguyễn Việt