php - can't get date in german language

前端 未结 4 1935
再見小時候
再見小時候 2021-01-18 07:19

I try to display a date in German but it doesn\'t work. I\'m using PHP with XAMPP.

These are my approaches:

function get_Datetime_Now() {
setlocale (         


        
4条回答
  •  孤城傲影
    2021-01-18 07:42

    I just comment to thank Tim Bodeit, and if someone is looking to set the month in spanish, this is the code that worked to me:

    setlocale(LC_TIME, 'es_ES', 'esp_esp');
    

提交回复
热议问题