How can I translate with the date output format like this: AUG 2020 with php wp or my wordpress site is currently using the polylang plugin. Please help me, thank you.

  • Can you show us the code that's generating the date? I'd expect Polylang to set the PHP locale so PHP-generated dates would just be correct, so it's probably something else, but I don't know the plugin.
    – Rup
    Jan 13 '21 at 10:13
  • Hello @Rup. Here is the code that shows the date in post <?php echo get_the_date('M Y');?>. I am using this plugin: wordpress.org/plugins/polylang
    – River
    Jan 14 '21 at 4:46

You can set translation of date/time format from here while Polylang plugin was actived:

dashboard menu -> Languages -> Strings translations

for example:

  • for date_format English translation: m/d/Y
  • for date_format Chinese translation: Y年n月j日
  • Thank you so much.
    – River
    Sep 30 '21 at 10:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.