DateTime :: format in German (day of week)

I would like to get the German result from DateTime::format('D, d.m.Y H:i')

, meaning that instead of "Sun ..." I want to get "So ...". I installed setlocale(LC_ALL,'de_DE');

but that didn't fix the problem.

+3


source to share


1 answer


To quote the documentation for Datetime::format

:

This method does not use locales. All products are in English.



If you want to format the date in a different region (German in your case), you can use date

:

date('D, d.m.Y H:i');

      

+1


source







All Articles