Skip Navigation

[Resolved] CRED wrong date format

This thread is resolved. Here is a description of the problem and solution.

Problem:
My site is in French and the setted language of my WordPress is French too but the date format of my date field in CRED form is still in English. I would like it to be displayed as "j F Y".
Solution:
Cred date picker supports following date format:
$_supported_date_formats = array('F j, Y', //December 23, 2011
'Y/m/d', // 2011/12/23
'm/d/Y', // 12/23/2011
'd/m/Y' // 23/22/2011
);
You can see it in CRED source code, file cred-frontend-editor\embedded\classes\CredForm.php, line 45~49.

So CRED does not support the date format: j F Y
Relevant Documentation:

This support ticket is created 8 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 6 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#360202

I have issues with CRED date format. My site is in French and the setted language of my WordPress is French too but the date format of my date field is still in English. I would like it to be displayed as "j F Y". This format is already setted in my Setting page.

I know that CRED can't take format="" in its field but do you have an alternative?

My WordPress and plugins are up to date.

Thank you

#360314

Dear Jean,

Cred date picker supports following date format:
$_supported_date_formats = array('F j, Y', //December 23, 2011
'Y/m/d', // 2011/12/23
'm/d/Y', // 12/23/2011
'd/m/Y' // 23/22/2011
);

You can see it in CRED source code, file cred-frontend-editor\embedded\classes\CredForm.php, line 45~49.

So CRED does not support the date format: j F Y
And I put it into our to-do list as a feature request, our developers will take care of it, but there isn't any ETA for it.

#360524

Ok, so I hope it will be resolved quickly!

Thank you

#555587

Here is the feedback from our developers, it is fixed in Types version 2.3, but I am not sure when will it be released, I suggest you subscribe to our blog to get the updated news:
https://toolset.com/blog/

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.