I've a string like this: 2018-02-21 15:10:23. I need to show a date like this '23 Febbraio 2018' and, I used this code to convert the string to a DateTime:
$post_date_to_DateTime = new DateTime($post_date_string);
$post_date = $post_date_to_DateTime->format('Y-m-d');
Now, I have to extract Month in format Text and day and year in number to compose the date (in Italian). There's a fast method using some php date functions or I have to create an array with all Months Italian names and then create a specific string?
Thanks in advance!