How can I tranlslate post date in italian?


I’m using this filter to display post date in my single and archive pages, because working on a windows azure php app I can’t show post date before 1901.

This filter is working but It displays post date in english

add_filter( 'wp_date', function($the_date, $d, $post){
  $date = new DateTime( $post->post_date );
 echo $date->format('j F, Y'); // change formatting as needed 
}, 10, 3 );

I need to display the post date in italian. How can I do that?

Thanks guys

Bondweb 8 months 2020-12-05T11:10:25-05:00 0 Answers 7 views 0

Leave an answer