Puddinq.com sharing knowledge

Translated publication date

Translated publication date

There are multiple ways to display the publication date above the post and a few ways to translate. One shorthand way is as follows.

/**
 *  Translated publication date 
 **/

echo date_i18n('j F Y', strtotime(get_the_date()));