Skip Navigation

[Fermé] Date return in english not french

This support ticket is created Il y a 8 années et 10 mois. 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)

This topic contains 3 réponses, has 2 voix.

Last updated by Luo Yang Il y a 8 années et 10 mois.

Assigned support staff: Luo Yang.

Auteur
Publications
#190752

i use this function to get the date in a custom field

$datetitle = types_render_field( "date", array( "format" => "M d Y"));

but the return date look like : fév 21 2014, and i need it in english (month)

how is it possible to do that ?

#190883

Luo Yang
Supporter

Languages: Anglais (English ) Chinois simplifié (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Hi marc-andrem,

Are you using the latest version of Types?
Are you using the latest version of english wordpress?
Could you try deactivate other plugins and switch to wordpress default theme, and test again?

#192031

lates type version lates wp version... plugin activated of not does not matter...

#192066

Luo Yang
Supporter

Languages: Anglais (English ) Chinois simplifié (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

I can not duplicate same problem in my localhost, please try PHP function date(), like this:

echo $datetitle = date("M d Y", get_post_meta(get_the_ID(), 'wpcf-date', true));

More help:
hidden link
M A short textual representation of a month, three letters Jan through Dec

Le sujet ‘[Fermé] Date return in english not french’ est fermé à de nouvelles réponses.