Months name is not showing in German in PHP?

Hi I am trying to display months name in PHP but it is not showing in German language in MYSQL, my date is showing as 2021-01-23 which I converted into months by using PHP function Month(), MONTH(beginn)

PHP Code -

date_default_timezone_set('Europe/Berlin');
setlocale(LC_ALL, 'de_DE.utf8');
echo  (date("F",strtotime($month)));


Read more here: https://stackoverflow.com/questions/67386933/months-name-is-not-showing-in-german-in-php

Content Attribution

This content was originally published by Christina leonel at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: