How can I tranlslate post date in italian?

Question

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

0
Bondweb 1 month 0 Answers 7 views 0

Leave an answer